]> Creatis software - gdcm.git/blob - Testing/CMakeLists.txt
*ENH: Use a FOREACH ... smarter !
[gdcm.git] / Testing / CMakeLists.txt
1 # TODO:
2 # http://www.cmake.org/pipermail/cmake/2001-November/002491.html
3 # So that dll is copied to each subdir where needed
4
5 SET(TEST_SOURCES
6   PrintHeader.cxx
7   testWrite.cxx
8   testChangeEntete.cxx
9   hashtest.cxx
10   bug1.cxx
11   pourFindTaggs.cxx
12   dcm2acr.cxx
13 )
14
15 # include stuff
16 INCLUDE_DIRECTORIES(
17   ${GDCM_SOURCE_DIR}/src/
18 )
19
20 # Loop over files and create executables
21 FOREACH(file ${TEST_SOURCES})
22   GET_FILENAME_COMPONENT(name ${file} NAME_WE)
23   ADD_EXECUTABLE(${name} ${file})
24   TARGET_LINK_LIBRARIES(gdcm)
25 ENDFOREACH(file ${TEST_SOURCES})