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 # Loop over files and create executables
29 FOREACH(file ${TEST_SOURCES})
30 #Doh ! I need to specify each time the compile flags !
31 IF(GDCM_TEST_COMPILE_FLAGS)
32 SET_SOURCE_FILES_PROPERTIES(${file}
34 COMPILE_FLAGS ${GDCM_TEST_COMPILE_FLAGS}
36 ENDIF(GDCM_TEST_COMPILE_FLAGS)
37 GET_FILENAME_COMPONENT(name ${file} NAME_WE)
38 ADD_EXECUTABLE(${name} ${file})
39 TARGET_LINK_LIBRARIES(${name} gdcm)
40 ENDFOREACH(file ${TEST_SOURCES})