PulseView  unreleased development snapshot
A Qt-based sigrok GUI
manual/CMakeLists.txt File Reference

Functions

 cmake_minimum_required (VERSION 2.8.12) project(PV_MANUAL) find_program(ASCIIDOCTOR_EXECUTABLE NAMES asciidoctor) find_program(ASCIIDOCTOR_PDF_EXECUTABLE NAMES asciidoctor-pdf) set(STYLES_DIR"asciidoctor-stylesheet-factory/stylesheets") set(STYLE_SHEET"readthedocs.css") set(MANUAL_SRC"$
 
manual txt set (MANUAL_OUT_HTML"${CMAKE_CURRENT_BINARY_DIR}/manual.html") set(MANUAL_OUT_PDF"$
 
manual pdf if (NOT EXISTS"${CMAKE_CURRENT_BINARY_DIR}/images") message(STATUS"creating symlink for manual's images/ subdirectory") execute_process(COMMAND $
 
E HTML output if (ASCIIDOCTOR_PDF_EXECUTABLE) add_custom_target(manual-pdf COMMAND $
 

Variables

create_symlink
 

Function Documentation

cmake_minimum_required ( VERSION 2.8.  12)

Definition at line 20 of file CMakeLists.txt.

manual pdf if ( NOT EXISTS"${CMAKE_CURRENT_BINARY_DIR}/images"  )

Definition at line 42 of file CMakeLists.txt.

Here is the caller graph for this function:

E HTML output if ( ASCIIDOCTOR_PDF_EXECUTABLE  )

Definition at line 68 of file CMakeLists.txt.

Here is the call graph for this function:

manual txt set ( MANUAL_OUT_HTML"${CMAKE_CURRENT_BINARY_DIR}/manual.html"  )

Definition at line 36 of file CMakeLists.txt.

Here is the caller graph for this function:

Variable Documentation

E create_symlink
Initial value:
{CMAKE_CURRENT_SOURCE_DIR}/images"
"${CMAKE_CURRENT_BINARY_DIR}/images"
RESULT_VARIABLE IMAGES_LINK_RESULT
)
if (NOT IMAGES_LINK_RESULT EQUAL 0)
message(WARNING "manual rendering will lack images")
endif ()
endif ()
add_custom_target(manual-html
COMMAND ${ASCIIDOCTOR_EXECUTABLE}
-a stylesheet=${STYLE_SHEET}
-a stylesdir=${CMAKE_CURRENT_SOURCE_DIR}/${STYLES_DIR}
-a toc=left
--destination-dir=${CMAKE_CURRENT_BINARY_DIR}
${MANUAL_SRC}
BYPRODUCTS ${MANUAL_OUT_HTML}
DEPENDS ${MANUAL_SRC}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating manual

Definition at line 46 of file CMakeLists.txt.