Update some references.
[ginac.git] / doc / reference / CMakeLists.txt
1 set(VERSION ${GINAC_VERSION})
2 set(top_srcdir ${CMAKE_SOURCE_DIR})
3
4 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/DoxyfileHTML.in
5                ${CMAKE_CURRENT_BINARY_DIR}/DoxyfileHTML
6                @ONLY)
7 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/DoxyfilePDF.in
8                ${CMAKE_CURRENT_BINARY_DIR}/DoxyfilePDF
9                @ONLY)
10 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/DoxyfileTEX.in
11                ${CMAKE_CURRENT_BINARY_DIR}/DoxyfileTEX
12                @ONLY)
13 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfooter.in
14                ${CMAKE_CURRENT_BINARY_DIR}/Doxyfooter
15                @ONLY)
16
17 add_custom_target(html_dox
18         COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/DoxyfileHTML
19         WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
20         COMMENT "DOXYGEN DoxyfileHTML")
21 add_dependencies(html html_dox)
22 add_custom_command(
23         OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/pdflatex/refman.tex
24         COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/DoxyfilePDF
25         WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
26         COMMENT "DOXYGEN DoxyfilePDF")
27 add_custom_command(
28         OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/pdflatex/reference.tex
29         COMMAND ${CMAKE_COMMAND} -E copy refman.tex reference.tex
30         DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/pdflatex/refman.tex
31         WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/pdflatex)
32
33
34 if (LATEX_FOUND)
35         pdflatex_process(${CMAKE_CURRENT_BINARY_DIR}/pdflatex/reference.tex)
36         add_custom_target(pdf_dox DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/pdflatex/reference.pdf)
37         add_dependencies(pdf pdf_dox)
38 endif()
39
40