X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=6f3a808b32ac68a1442317950512230e03110907;hb=15a5a2146a9429085a0827e1edf57c2cf0fa3861;hp=0becec0cc565972e71d1c1089fe252cab7053c65;hpb=f401a57ad3503c83537ea869cf4cd246d842bfc0;p=clitk.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 0becec0..6f3a808 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,9 +11,6 @@ PROJECT(clitk) #========================================================= INCLUDE(cmake/common.cmake) #========================================================= -#Support for the CTest dashboard testing system -INCLUDE(CTest) -#========================================================= #========================================================= # Find ITK (required) @@ -54,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}) @@ -78,6 +84,7 @@ add_subdirectory(tools) add_subdirectory(segmentation) add_subdirectory(registration) + # Compilation options OPTION(CLITK_EXPERIMENTAL "Enable experimental software and features" OFF) OPTION(CLITK_BUILD_TOOLS "Build command-line tools" OFF) @@ -89,5 +96,15 @@ IF (CLITK_BUILD_VV) add_subdirectory(vv) ENDIF(CLITK_BUILD_VV) + +#========================================================= +#Support for the CTest dashboard testing system +INCLUDE(CTest) +#========================================================= +add_subdirectory(tests) +add_subdirectory(tests/tools) +#========================================================= + + #=========================================================