-
Notifications
You must be signed in to change notification settings - Fork 179
/
Copy pathCMakeLists.txt
43 lines (40 loc) · 1.13 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
if (GENERATE_DOC)
find_package(Doxygen REQUIRED)
endif()
# Configure info
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
@ONLY
)
if (GENERATE_DOC)
# Build info
add_custom_target(doc ALL
"${DOXYGEN_EXECUTABLE}" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
COMMENT "Generating API documentation with Doxygen"
)
add_custom_target(pdfdoc ALL
make
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/latex"
COMMENT "Running make to generate PDF output"
DEPENDS doc
)
# Install info
# html an qch
install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html"
"${CMAKE_CURRENT_BINARY_DIR}/qch"
DESTINATION "share/doc/tufao"
COMPONENT doc
PATTERN index.qhp EXCLUDE
)
# pdf
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/latex/refman.pdf"
DESTINATION "share/doc/tufao/pdf"
COMPONENT doc
)
# man
install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/man"
DESTINATION "share"
COMPONENT doc
)
endif(GENERATE_DOC)