]> Creatis software - gdcm.git/blobdiff - Testing/CMakeLists.txt
Adding a GDCM_DATA_ROOT for testing
[gdcm.git] / Testing / CMakeLists.txt
index 0b27899a2762221658936f06381f75dcb1193395..f722013e4396f85c1fda339afac168b7e6db00a1 100644 (file)
@@ -15,21 +15,27 @@ ENDIF(NOT CMAKE_HAVE_STDINT_H)
 
 
 SET(TEST_SOURCES
-  PrintHeader.cxx
-  testWrite.cxx
-  testChangeEntete.cxx
+  PrintHeader.cxx #require test.acr
+  bug1.cxx        #require test.acr
+  dcm2acr.cxx     #require test.acr
   hashtest.cxx
-  bug1.cxx
-  pourFindTaggs.cxx
-  dcm2acr.cxx
-  PrintDicomDir.cxx
   makeDicomDir.cxx
   testDicomDir.cxx
+  testWrite.cxx
 )
+IF (GDCM_DATA_ROOT)
+       # add tests that require data
+       SET(TEST_SOURCES ${TEST_SOURCES}     
+         PrintDicomDir.cxx
+    pourFindTaggs.cxx
+    testChangeEntete.cxx
+  )
+ENDIF (GDCM_DATA_ROOT)
 
 # include stuff
 INCLUDE_DIRECTORIES(
   ${GDCM_SOURCE_DIR}/src/
+  ${GDCM_BINARY_DIR}/
 )
 
 # Loop over files and create executables