doc/CMakeLists.txt
author Alpar Juttner <alpar@cs.elte.hu>
Sun, 05 Dec 2010 17:35:23 +0100
changeset 2 4c8956a7bdf4
permissions -rw-r--r--
Set up CMAKE build environment
     1 IF(PDFLATEX_COMPILER)
     2   ADD_CUSTOM_COMMAND(OUTPUT glpk.pdf
     3     COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk.tex ${CMAKE_CURRENT_BINARY_DIR}
     4     COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk01.tex ${CMAKE_CURRENT_BINARY_DIR}
     5     COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk02.tex ${CMAKE_CURRENT_BINARY_DIR}
     6     COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk03.tex ${CMAKE_CURRENT_BINARY_DIR}
     7     COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk04.tex ${CMAKE_CURRENT_BINARY_DIR}
     8     COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk05.tex ${CMAKE_CURRENT_BINARY_DIR}
     9     COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk06.tex ${CMAKE_CURRENT_BINARY_DIR}
    10     COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk07.tex ${CMAKE_CURRENT_BINARY_DIR}
    11     COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk08.tex ${CMAKE_CURRENT_BINARY_DIR}
    12     COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk09.tex ${CMAKE_CURRENT_BINARY_DIR}
    13     COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk10.tex ${CMAKE_CURRENT_BINARY_DIR}
    14     COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk11.tex ${CMAKE_CURRENT_BINARY_DIR}
    15     COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk12.tex ${CMAKE_CURRENT_BINARY_DIR}
    16     COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_BINARY_DIR}/glpk.tex
    17     COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_BINARY_DIR}/glpk.tex
    18     MAIN_DEPENDENCY glpk.tex
    19     DEPENDS glpk01.tex glpk02.tex glpk03.tex glpk04.tex glpk05.tex
    20     glpk06.tex glpk07.tex glpk08.tex glpk09.tex glpk10.tex glpk11.tex
    21     glpk12.tex
    22     )
    23   ADD_CUSTOM_COMMAND(OUTPUT graphs.pdf
    24     COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_SOURCE_DIR}/graphs.tex
    25     COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_SOURCE_DIR}/graphs.tex
    26     MAIN_DEPENDENCY graphs.tex
    27     )
    28   ADD_CUSTOM_COMMAND(OUTPUT gmpl.pdf
    29     COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_SOURCE_DIR}/gmpl.tex
    30     COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_SOURCE_DIR}/gmpl.tex
    31     MAIN_DEPENDENCY gmpl.tex
    32     )
    33   ADD_CUSTOM_TARGET(pdfdoc
    34     DEPENDS glpk.pdf graphs.pdf gmpl.pdf)
    35 ENDIF()