]> Creatis software - gdcm.git/blob - Example/CMakeLists.txt
Unify user interface
[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   exBuildUpDicomDir
10   exReadPapyrus
11   exReadWriteFile
12   exAnonymize
13   exAnonymizeNoLoad  # without loading the Pixel Data
14   exColorToRGB
15   exGrey2RGB
16   exGC
17   exImageLighten
18   exOverlaysACR
19   exSerieHelper
20             
21 #the following are utilities
22   PrintDicomDir
23   PrintDocument
24   PrintFile
25   FindTags
26   MakeDicomDir
27   AnonymizeDicomDir # without loading it as a gdcm::DicomDir
28   Anonymize         # for full gdcm readable files
29   AnonymizeNoLoad   # without loading the Pixel Data 
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   FlatHashTablePrint
38   TestCopyDicom
39   TestChangeHeader
40   TestFromScratch
41   TestWrite
42   TestWriteSimple
43   Volume2Dicom
44   WriteDicomSimple
45   WriteRead
46 )
47
48 FOREACH(name ${EXAMPLE_SOURCES})
49   ADD_EXECUTABLE(${name} ${name}.cxx)
50   TARGET_LINK_LIBRARIES(${name} gdcm)
51   INSTALL_TARGETS(/bin/ ${name})
52 ENDFOREACH(name)
53