]> Creatis software - gdcm.git/blob - Example/CMakeLists.txt
Update CMakeLists.txt
[gdcm.git] / Example / CMakeLists.txt
1 # include stuff
2 INCLUDE_DIRECTORIES(
3   ${GDCM_SOURCE_DIR}/src
4   ${GDCM_BINARY_DIR}
5 )
6
7 SET(EXAMPLE_SOURCES
8 #names starting with 'ex' are examples  
9   exReadPapyrus
10   exReadWriteFile
11   exColorToRGB
12   exGrey2RGB
13   exGC
14   exImageLighten
15   exOverlaysACR
16   exCurveData
17   exExtractTag
18   exSerieHelper
19   exXCoherentFileSet
20   exExtractDicomTags
21                 
22 #the following are utilities
23   PrintDicomDir
24   PrintFile
25   MakeDicomDir
26   AnonymizeDicomDir # without loading it as a gdcm::DicomDir
27   Anonymize         # for full gdcm readable files
28   AnonymizeNoLoad   # without loading the Pixel Data 
29   PatchHeader
30   ReWrite
31
32 #the following will be transformed into 'examples', or 'utilities'
33 #              or will be removed
34 #
35 # Better you don't use them (not fully checked ...)
36  
37   FindTags
38   FlatHashTablePrint
39   Volume2Dicom
40   WriteDicomSimple
41   WriteRead
42 )
43
44 FOREACH(name ${EXAMPLE_SOURCES})
45   ADD_EXECUTABLE(${name} ${name}.cxx )
46   TARGET_LINK_LIBRARIES(${name} gdcm)
47   INSTALL_TARGETS(/bin/ ${name})
48 ENDFOREACH(name)
49