CMakeLists.txt (1008B)
1 set(LATEX_DOCUMENTS 2 "analysis and conception.tex" 3 "operational plan.tex" 4 slideshow.tex 5 specifications.tex 6 ) 7 8 add_custom_target(doc) 9 10 if(PDFLATEX_COMPILER) 11 include(UseLATEX) 12 13 foreach(LATEX_DOCUMENT ${LATEX_DOCUMENTS}) 14 add_latex_document(${LATEX_DOCUMENT} IMAGE_DIRS images DEFAULT_PDF MANGLE_TARGET_NAMES) 15 get_filename_component(DOCUMENT ${LATEX_DOCUMENT} NAME_WE) 16 add_dependencies(doc ${DOCUMENT}_pdf) 17 endforeach(LATEX_DOCUMENT) 18 else(PDFLATEX_COMPILER) 19 message(STATUS "The LaTeX documentation can not be compiled.") 20 endif(PDFLATEX_COMPILER) 21 22 if(DOXYGEN_FOUND) 23 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY) 24 add_custom_target(devdoc ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Generating API documentation with Doxygen" VERBATIM) 25 add_dependencies(doc devdoc) 26 else(DOXYGEN_FOUND) 27 message(STATUS "The developer documentation can not be compiled.") 28 endif(DOXYGEN_FOUND)