FILE(TO_NATIVE_PATH ${BUILD_PATH} THE_BUILD_PATH)
#message("BBTKBUILLATEXDOC;CMAKE LATEX COMPILER + ${LATEX_COMPILER}")
# Have to run latex twice to get references, toc, etc.
+ # ADD_CUSTOM_COMMAND(
+ # OUTPUT ${BUILD_PATH}/${TEX_FILE}.aux
+ # COMMAND
+ # latex
+ # cd ${THE_BUILD_PATH} && ${LATEX_COMPILER}
+ # ARGS
+ # -interaction=batchmode ${BUILD_PATH}/${TEX_FILE} -output-directory=${BUILD_PATH}/
+
+ # DEPENDS
+ # ${CMAKE_CURRENT_SOURCE_DIR}/${TEX_FILE}.tex
+ # ${CMAKE_CURRENT_SOURCE_DIR}/../config.tex
+
+ # )
ADD_CUSTOM_COMMAND(
- OUTPUT ${BUILD_PATH}/${TEX_FILE}.aux
+ OUTPUT ${BUILD_PATH}/${TEX_FILE}.aux
COMMAND
# latex
cd ${THE_BUILD_PATH} && ${LATEX_COMPILER}
ARGS
-interaction=batchmode ${BUILD_PATH}/${TEX_FILE} -output-directory=${BUILD_PATH}/
-
- DEPENDS
- ${CMAKE_CURRENT_SOURCE_DIR}/${TEX_FILE}.tex
- ${CMAKE_CURRENT_SOURCE_DIR}/../config.tex
- )
- ADD_CUSTOM_COMMAND(
- OUTPUT ${BUILD_PATH}/${TEX_FILE}.pdf
+
+ OUTPUT ${BUILD_PATH}/${TEX_FILE}.pdf
COMMAND
# latex
cd ${THE_BUILD_PATH} && ${LATEX_COMPILER}
ARGS
-interaction=batchmode ${BUILD_PATH}/${TEX_FILE} -output-directory=${BUILD_PATH}/
- DEPENDS ${BUILD_PATH}/${TEX_FILE}.aux
+ #DEPENDS #${BUILD_PATH}/${TEX_FILE}.aux
+ #${CMAKE_CURRENT_SOURCE_DIR}/${TEX_FILE}.tex
+ #${CMAKE_CURRENT_SOURCE_DIR}/../config.tex
)
# pdf target