]> Creatis software - clitk.git/blobdiff - CMakeLists.txt
First doxygen support with option BUILD_DOXYGEN in cmake and "make Documentation".
[clitk.git] / CMakeLists.txt
index c007a11c870295618cbd5497d25253bf1a5fa006..6f3a808b32ac68a1442317950512230e03110907 100644 (file)
@@ -51,6 +51,15 @@ ELSE (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
 ENDIF (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")  
 #=========================================================
 
+#=========================================================
+# If the user choose to build documentation, then search for Doxygen executables.
+OPTION(BUILD_DOXYGEN "Build Doxygen Documentation" OFF)
+IF(BUILD_DOXYGEN)
+  FIND_PACKAGE(Doxygen)
+  ADD_SUBDIRECTORY(Doxygen)
+ENDIF(BUILD_DOXYGEN)
+#=========================================================
+
 #=========================================================
 # Building in the source tree is forbidden
 IF(PROJECT_BINARY_DIR STREQUAL ${PROJECT_SOURCE_DIR})