From: Juan Prieto Date: Thu, 22 Oct 2009 17:00:27 +0000 (+0000) Subject: No compilation problems under win, the documentation is generated smoothly X-Git-Tag: CREATOOLS.2-0-3~120 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=2647a82b541f48f3396e33ba7a5b8d5fb176a01c;p=bbtk.git No compilation problems under win, the documentation is generated smoothly --- diff --git a/kernel/cmake/BBTKBuildLatexDoc.cmake b/kernel/cmake/BBTKBuildLatexDoc.cmake index e62d358..534e06d 100644 --- a/kernel/cmake/BBTKBuildLatexDoc.cmake +++ b/kernel/cmake/BBTKBuildLatexDoc.cmake @@ -29,27 +29,37 @@ MACRO(BBTK_BUILD_LATEX_DOC TEX_FILE OUTPUT_REL_PATH) 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 diff --git a/kernel/doc/config.tex b/kernel/doc/config.tex index 6bbd5bf..85c399d 100644 --- a/kernel/doc/config.tex +++ b/kernel/doc/config.tex @@ -1,3 +1,4 @@ +\usepackage{ifpdf} % ========================================== \newif\ifpdf \ifx\pdfoutput\undefined \pdffalse % we are not running PDFLaTeX