diff -r c445c931472f -r 4c8956a7bdf4 doc/CMakeLists.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/CMakeLists.txt Sun Dec 05 17:35:23 2010 +0100 @@ -0,0 +1,35 @@ +IF(PDFLATEX_COMPILER) + ADD_CUSTOM_COMMAND(OUTPUT glpk.pdf + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk.tex ${CMAKE_CURRENT_BINARY_DIR} + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk01.tex ${CMAKE_CURRENT_BINARY_DIR} + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk02.tex ${CMAKE_CURRENT_BINARY_DIR} + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk03.tex ${CMAKE_CURRENT_BINARY_DIR} + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk04.tex ${CMAKE_CURRENT_BINARY_DIR} + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk05.tex ${CMAKE_CURRENT_BINARY_DIR} + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk06.tex ${CMAKE_CURRENT_BINARY_DIR} + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk07.tex ${CMAKE_CURRENT_BINARY_DIR} + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk08.tex ${CMAKE_CURRENT_BINARY_DIR} + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk09.tex ${CMAKE_CURRENT_BINARY_DIR} + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk10.tex ${CMAKE_CURRENT_BINARY_DIR} + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk11.tex ${CMAKE_CURRENT_BINARY_DIR} + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk12.tex ${CMAKE_CURRENT_BINARY_DIR} + COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_BINARY_DIR}/glpk.tex + COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_BINARY_DIR}/glpk.tex + MAIN_DEPENDENCY glpk.tex + DEPENDS glpk01.tex glpk02.tex glpk03.tex glpk04.tex glpk05.tex + glpk06.tex glpk07.tex glpk08.tex glpk09.tex glpk10.tex glpk11.tex + glpk12.tex + ) + ADD_CUSTOM_COMMAND(OUTPUT graphs.pdf + COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_SOURCE_DIR}/graphs.tex + COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_SOURCE_DIR}/graphs.tex + MAIN_DEPENDENCY graphs.tex + ) + ADD_CUSTOM_COMMAND(OUTPUT gmpl.pdf + COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_SOURCE_DIR}/gmpl.tex + COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_SOURCE_DIR}/gmpl.tex + MAIN_DEPENDENCY gmpl.tex + ) + ADD_CUSTOM_TARGET(pdfdoc + DEPENDS glpk.pdf graphs.pdf gmpl.pdf) +ENDIF() \ No newline at end of file