IF (BUILD_TESTING)
OPTION(CLITK_BUILD_TESTING "Test ITK" ON)
INCLUDE(CTest)
- ADD_SUBDIRECTORY(tests)
ENDIF(BUILD_TESTING)
#=========================================================
# Select what is compiled
ADD_SUBDIRECTORY(common)
-add_subdirectory(tools)
-add_subdirectory(segmentation)
-add_subdirectory(registration)
+ADD_SUBDIRECTORY(tools)
+ADD_SUBDIRECTORY(segmentation)
+ADD_SUBDIRECTORY(registration)
# Compilation options
#=========================================================
-
+# Build test when vv has been compiled
+IF(BUILD_TESTING)
+ ADD_SUBDIRECTORY(tests)
+ENDIF(BUILD_TESTING)