]> Creatis software - clitk.git/blobdiff - tests/CMakeLists.txt
Changment of cursor color value to keep the same color than before VTK8
[clitk.git] / tests / CMakeLists.txt
old mode 100755 (executable)
new mode 100644 (file)
index 822aada..d91dee6
@@ -1,17 +1,32 @@
-# Add test apps and test executions to this part
-# Test apps are compiled as any other app in the
-# project. Test executions are run using "make test"
+cmake_policy(SET CMP0005 NEW)
+#=========================================================
+#=========================================================
+# Data tests path
+find_path(CLITK_TEST_DATA_PATH Lung3D.mhd)
+if(NOT ${CLITK_TEST_DATA_PATH} MATCHES "NOTFOUND$")
+ set(CLITK_TEST_DATA_PATH "${CLITK_TEST_DATA_PATH}/")
+endif()
+add_definitions(-DCLITK_TEST_DATA_PATH="${CLITK_TEST_DATA_PATH}")
+#=========================================================
+#=========================================================
+set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/tests/bin)
+set(BUILDNAME ${CMAKE_SYSTEM_NAME}${CMAKE_OSX_ARCHITECTURES} CACHE INTERNAL DOCSTRING)
+#=========================================================
+#=========================================================
+# Enabled options to test
+if(CLITK_BUILD_TOOLS)
+  add_subdirectory(tools)
+endif()
+#if(CLITK_BUILD_VV)
+#  add_subdirectory(vv)
+#endif()
+# if(CLITK_BUILD_SEGMENTATION)
+#   add_subdirectory(segmentation)
+# endif()
 #
-IF (BUILD_TESTING)
+# if(CLITK_BUILD_REGISTATION)
+#   add_subdirectory(registration)
+# endif()
+#add_subdirectory(common)
+#=========================================================
 
-  # clitkImageInfo
-  ADD_EXECUTABLE(clitkImageInfoTest tools/clitkImageInfoTest.cxx)
-  TARGET_LINK_LIBRARIES(clitkImageInfoTest ITKIO)
-  ADD_TEST(NAME clitkImageInfoTest COMMAND clitkImageInfoTest)
-
-  # clitkWriteDicomSeries
-  ADD_EXECUTABLE(clitkWriteDicomSeriesTest tools/clitkWriteDicomSeriesTest.cxx)
-  TARGET_LINK_LIBRARIES(clitkWriteDicomSeriesTest ITKIO)
-  ADD_TEST(NAME clitkWriteDicomSeriesTest COMMAND clitkWriteDicomSeriesTest)
-
-ENDIF(BUILD_TESTING)
\ No newline at end of file