]> Creatis software - gdcm.git/blob - Example/CMakeLists.txt
ENH: Adding the ex to the list
[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   exSerieHelper
18   exExtractDicomTags
19               
20 #the following are utilities
21   PrintDicomDir
22   PrintFile
23   MakeDicomDir
24   AnonymizeDicomDir # without loading it as a gdcm::DicomDir
25   Anonymize         # for full gdcm readable files
26   AnonymizeNoLoad   # without loading the Pixel Data 
27   PatchHeader
28   ReWrite
29
30 #the following will be transformed into 'examples', or 'utilities'
31 #              or will be removed
32 #
33 # Better you don't use them (not fully checked ...)
34  
35   FindTags
36   FlatHashTablePrint
37   TestCopyDicom
38   TestChangeHeader
39   TestFromScratch
40   TestWrite
41   Volume2Dicom
42   WriteDicomSimple
43   WriteRead
44 )
45
46 FOREACH(name ${EXAMPLE_SOURCES})
47   ADD_EXECUTABLE(${name} ${name}.cxx)
48   TARGET_LINK_LIBRARIES(${name} gdcm)
49   INSTALL_TARGETS(/bin/ ${name})
50 ENDFOREACH(name)
51