diff options
author | Michele Papalini <micpapal+fdio@cisco.com> | 2017-02-24 08:00:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2017-02-24 08:00:13 +0000 |
commit | 6d4b6878ceff22f9ec8d8e9423214f9666007472 (patch) | |
tree | fa27e0c747676519cb87ff8448bfed62fce5009d /libccnx-portal/documentation/CMakeLists.txt | |
parent | f28308bd99381ef5f1e178e2e1f870f245e35873 (diff) | |
parent | d18ae43123fcd7604d1c36a1ec8450dbe6071824 (diff) |
Merge "Initial commit: ccnxlibs." into ccnxlibs/master
Diffstat (limited to 'libccnx-portal/documentation/CMakeLists.txt')
-rw-r--r-- | libccnx-portal/documentation/CMakeLists.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libccnx-portal/documentation/CMakeLists.txt b/libccnx-portal/documentation/CMakeLists.txt new file mode 100644 index 00000000..13a839ad --- /dev/null +++ b/libccnx-portal/documentation/CMakeLists.txt @@ -0,0 +1,20 @@ +find_package(Doxygen) + +if(DOXYGEN_FOUND) + configure_file(libccnx_api_portal-stage1.doxygen.in libccnx_api_portal-stage1.doxygen @ONLY) + configure_file(libccnx_api_portal-stage2.doxygen.in libccnx_api_portal-stage2.doxygen @ONLY) + add_custom_target(docs + DEPENDS doctags documentation) + add_custom_target(doctags + ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/libccnx_api_portal-stage1.doxygen + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMENT "Generating Doctags" VERBATIM ) + add_custom_target(documentation + ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/libccnx_api_portal-stage2.doxygen + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMENT "Generating Documentation" VERBATIM ) + add_custom_target(clobber-docs + COMMAND /bin/rm -rf ${CMAKE_CURRENT_BINARY_DIR}/libccnx_api_portal-documentation + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMENT "Removing Documentation" VERBATIM ) +endif(DOXYGEN_FOUND) |