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