2 # http://www.cmake.org/pipermail/cmake/2001-November/002491.html
3 # So that dll is copied to each subdir where needed
5 INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
6 CHECK_INCLUDE_FILE("stdint.h" CMAKE_HAVE_STDINT_H)
8 IF(NOT CMAKE_HAVE_STDINT_H)
9 SET(GDCM_TEST_COMPILE_FLAGS "-DHAVE_NO_STDINT_H")
10 ENDIF(NOT CMAKE_HAVE_STDINT_H)
25 ${GDCM_SOURCE_DIR}/src/
28 <<<<<<< CMakeLists.txt
32 ADD_EXECUTABLE(dcm2acr ${dcm2acr_SOURCES})
34 SET(explDICOMDIR_SOURCES
37 ADD_EXECUTABLE(explDICOMDIR ${explDICOMDIR_SOURCES})
39 # Loop over files and create executables
40 FOREACH(file ${TEST_SOURCES})
41 #Doh ! I need to specify each time the compile flags !
42 IF(GDCM_TEST_COMPILE_FLAGS)
43 SET_SOURCE_FILES_PROPERTIES(${file}
45 COMPILE_FLAGS ${GDCM_TEST_COMPILE_FLAGS}
47 ENDIF(GDCM_TEST_COMPILE_FLAGS)
48 GET_FILENAME_COMPONENT(name ${file} NAME_WE)
49 ADD_EXECUTABLE(${name} ${file})
50 TARGET_LINK_LIBRARIES(${name} gdcm)
51 ENDFOREACH(file ${TEST_SOURCES})