summaryrefslogtreecommitdiff
path: root/src/cmake/modules/GUDHI_doxygen_target.cmake
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-04-19 09:13:35 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-04-19 09:13:35 +0000
commitd6dacf64191ad06b1493f4b4cde15e4e553561fc (patch)
tree47312b57bb60e69530401c0dc74e2ae4f501496f /src/cmake/modules/GUDHI_doxygen_target.cmake
parentc74eff3efe5e18af2c8d61dbedacfd1e1fb97b35 (diff)
parent2ce2ed92a4400ecaaa6aac813e206d08b0b1f029 (diff)
Merge add_test_windows branch to fix add_test
Fix a biblio doxygen warning git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@2365 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 72a9180aa6be56fca0b5f357247300df17770159
Diffstat (limited to 'src/cmake/modules/GUDHI_doxygen_target.cmake')
-rw-r--r--src/cmake/modules/GUDHI_doxygen_target.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cmake/modules/GUDHI_doxygen_target.cmake b/src/cmake/modules/GUDHI_doxygen_target.cmake
new file mode 100644
index 00000000..d2cb952d
--- /dev/null
+++ b/src/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)