{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