29 message(CHECK_FAIL "not found - documentation will not be generated.") |
29 message(CHECK_FAIL "not found - documentation will not be generated.") |
30 endif() |
30 endif() |
31 option(BUILD_API_DOC "Create API documentation." ON) |
31 option(BUILD_API_DOC "Create API documentation." ON) |
32 |
32 |
33 if(BUILD_API_DOC AND DOXYGEN_FOUND) |
33 if(BUILD_API_DOC AND DOXYGEN_FOUND) |
34 set(DOXY_INPUT ${CMAKE_SOURCE_DIR}/src) |
34 set(DOXY_INPUT ${CMAKE_SOURCE_DIR}/src/cx) |
35 set(DOXY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/docs) |
35 set(DOXY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/docs) |
36 set(DOXY_PROJECT_LOGO ${CMAKE_SOURCE_DIR}/uaplogo.png) |
36 set(DOXY_PROJECT_LOGO ${CMAKE_SOURCE_DIR}/uaplogo.png) |
37 |
37 |
38 configure_file(${CMAKE_SOURCE_DIR}/cmake_infile.doxygen ${CMAKE_BINARY_DIR}/Doxyfile) |
38 configure_file(${CMAKE_SOURCE_DIR}/cmake_infile.doxygen ${CMAKE_BINARY_DIR}/Doxyfile) |
39 |
39 |