]> Creatis software - gdcm.git/blob - Example/CMakeLists.txt
Add a user supplied example 'Grey to RGB'
[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             
20 #the following are utilities
21   PrintDicomDir
22   PrintDocument
23   PrintFile
24   FindTags
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   ReWrite
30   
31 #the following will be transformed into 'examples', or 'utilities'
32 #              or will be removed
33 #
34 # Better you don't use them (not fully checked ...)
35  
36   FlatHashTablePrint
37   TestCopyDicom
38   TestChangeHeader
39   TestFromScratch
40   TestWrite
41   TestWriteSimple
42   Volume2Dicom
43   WriteDicomSimple
44   WriteRead
45 )
46
47 FOREACH(name ${EXAMPLE_SOURCES})
48   ADD_EXECUTABLE(${name} ${name}.cxx)
49   TARGET_LINK_LIBRARIES(${name} gdcm)
50   INSTALL_TARGETS(/bin/ ${name})
51 ENDFOREACH(name)
52