29 set(DOXY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/docs) |
28 set(DOXY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/docs) |
30 set(DOXY_PROJECT_LOGO ${CMAKE_SOURCE_DIR}/uaplogo.png) |
29 set(DOXY_PROJECT_LOGO ${CMAKE_SOURCE_DIR}/uaplogo.png) |
31 |
30 |
32 configure_file(${CMAKE_SOURCE_DIR}/cmake_infile.doxygen ${CMAKE_BINARY_DIR}/Doxyfile) |
31 configure_file(${CMAKE_SOURCE_DIR}/cmake_infile.doxygen ${CMAKE_BINARY_DIR}/Doxyfile) |
33 |
32 |
|
33 add_custom_target(docs-api-21 |
|
34 COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/docs/api-2.1 ${CMAKE_BINARY_DIR}/docs/web/api-2.1 |
|
35 WORKING_DIRECTORY ${CMAKE_BINARY_DIR} |
|
36 COMMENT "Copying UCX 2.1 API documentation.") |
|
37 |
34 add_custom_target(docs-api |
38 add_custom_target(docs-api |
35 COMMAND ${DOXYGEN_EXECUTABLE} |
39 COMMAND ${DOXYGEN_EXECUTABLE} |
36 WORKING_DIRECTORY ${CMAKE_BINARY_DIR} |
40 WORKING_DIRECTORY ${CMAKE_BINARY_DIR} |
37 COMMENT "Generating API documentation with Doxygen") |
41 COMMENT "Generating API documentation with Doxygen.") |
|
42 |
|
43 add_custom_target(docs-all DEPENDS docs-html docs-api docs-api-21) |
|
44 else() |
|
45 add_custom_target(docs-all DEPENDS docs-html) |
38 endif() |
46 endif() |
39 |
47 |
40 add_custom_target(docs-all DEPENDS docs-html docs-api) |
|