]> Creatis software - gdcm.git/blob - Example/CMakeLists.txt
* Builder/ : add something to facilitate the RPM creation of gdcm
[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   exGC
16   exImageLighten
17             
18 #the following are utilities
19   PrintDicomDir
20   PrintDocument
21   PrintFile
22   PrintHeader
23   FindTags
24   MakeDicomDir
25   AnonymizeDicomDir # without loading it as a gdcm::DicomDir
26
27 #the following will be transformed into 'examples', or 'utilities'
28 #              or will be removed
29  
30   #test
31   FlatHashTablePrint
32   TestCopyDicom
33   TestChangeHeader
34   TestFromScratch
35   TestWrite
36   TestWriteSimple
37   Volume2Dicom
38   WriteDicomSimple
39   WriteRead
40 )
41
42 FOREACH(name ${EXAMPLE_SOURCES})
43   ADD_EXECUTABLE(${name} ${name}.cxx)
44   TARGET_LINK_LIBRARIES(${name} gdcm)
45   INSTALL_TARGETS(/bin/ ${name})
46 ENDFOREACH(name)
47