summaryrefslogtreecommitdiff
path: root/cmake/modules/GUDHI_doxygen_target.cmake
diff options
context:
space:
mode:
authorGard Spreemann <gspreemann@gmail.com>2017-04-20 11:15:58 +0200
committerGard Spreemann <gspreemann@gmail.com>2017-04-20 11:15:58 +0200
commiteadd3e18b55fc3b7a7d0420015902df2d58dcea5 (patch)
treece025060ea9045415b1f738886c8c70ed32218e8 /cmake/modules/GUDHI_doxygen_target.cmake
parent5638527781e1d8cd916cd28f9d375eef7b5d820b (diff)
parent8d7329f3e5ad843e553c3c5503cecc28ef2eead6 (diff)
Merge tag 'upstream/2.0.0' into dfsg/latest
Upstream's 2.0.0 release.
Diffstat (limited to 'cmake/modules/GUDHI_doxygen_target.cmake')
-rw-r--r--cmake/modules/GUDHI_doxygen_target.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/modules/GUDHI_doxygen_target.cmake b/cmake/modules/GUDHI_doxygen_target.cmake
new file mode 100644
index 00000000..d2cb952d
--- /dev/null
+++ b/cmake/modules/GUDHI_doxygen_target.cmake
@@ -0,0 +1,11 @@
+# add a target to generate API documentation with Doxygen
+find_package(Doxygen)
+if(DOXYGEN_FOUND)
+ # configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
+
+ add_custom_target(doxygen ${DOXYGEN_EXECUTABLE} ${GUDHI_USER_VERSION_DIR}/Doxyfile
+ WORKING_DIRECTORY ${GUDHI_USER_VERSION_DIR}
+ DEPENDS ${GUDHI_USER_VERSION_DIR}/Doxyfile ${GUDHI_DOXYGEN_DEPENDENCY}
+ COMMENT "Generating API documentation with Doxygen in ${GUDHI_USER_VERSION_DIR}/doc/html/" VERBATIM)
+
+endif(DOXYGEN_FOUND)