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
alpar@2
     1
IF(PDFLATEX_COMPILER)
alpar@2
     2
  ADD_CUSTOM_COMMAND(OUTPUT glpk.pdf
alpar@2
     3
    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk.tex ${CMAKE_CURRENT_BINARY_DIR}
alpar@2
     4
    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk01.tex ${CMAKE_CURRENT_BINARY_DIR}
alpar@2
     5
    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk02.tex ${CMAKE_CURRENT_BINARY_DIR}
alpar@2
     6
    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk03.tex ${CMAKE_CURRENT_BINARY_DIR}
alpar@2
     7
    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk04.tex ${CMAKE_CURRENT_BINARY_DIR}
alpar@2
     8
    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk05.tex ${CMAKE_CURRENT_BINARY_DIR}
alpar@2
     9
    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk06.tex ${CMAKE_CURRENT_BINARY_DIR}
alpar@2
    10
    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk07.tex ${CMAKE_CURRENT_BINARY_DIR}
alpar@2
    11
    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk08.tex ${CMAKE_CURRENT_BINARY_DIR}
alpar@2
    12
    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk09.tex ${CMAKE_CURRENT_BINARY_DIR}
alpar@2
    13
    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk10.tex ${CMAKE_CURRENT_BINARY_DIR}
alpar@2
    14
    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk11.tex ${CMAKE_CURRENT_BINARY_DIR}
alpar@2
    15
    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/glpk12.tex ${CMAKE_CURRENT_BINARY_DIR}
alpar@2
    16
    COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_BINARY_DIR}/glpk.tex
alpar@2
    17
    COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_BINARY_DIR}/glpk.tex
alpar@2
    18
    MAIN_DEPENDENCY glpk.tex
alpar@2
    19
    DEPENDS glpk01.tex glpk02.tex glpk03.tex glpk04.tex glpk05.tex
alpar@2
    20
    glpk06.tex glpk07.tex glpk08.tex glpk09.tex glpk10.tex glpk11.tex
alpar@2
    21
    glpk12.tex
alpar@2
    22
    )
alpar@2
    23
  ADD_CUSTOM_COMMAND(OUTPUT graphs.pdf
alpar@2
    24
    COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_SOURCE_DIR}/graphs.tex
alpar@2
    25
    COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_SOURCE_DIR}/graphs.tex
alpar@2
    26
    MAIN_DEPENDENCY graphs.tex
alpar@2
    27
    )
alpar@2
    28
  ADD_CUSTOM_COMMAND(OUTPUT gmpl.pdf
alpar@2
    29
    COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_SOURCE_DIR}/gmpl.tex
alpar@2
    30
    COMMAND ${PDFLATEX_COMPILER} -src \\\\nonstopmode\\\\input ${CMAKE_CURRENT_SOURCE_DIR}/gmpl.tex
alpar@2
    31
    MAIN_DEPENDENCY gmpl.tex
alpar@2
    32
    )
alpar@2
    33
  ADD_CUSTOM_TARGET(pdfdoc
alpar@2
    34
    DEPENDS glpk.pdf graphs.pdf gmpl.pdf)
alpar@2
    35
ENDIF()