]> Creatis software - gdcm.git/blob - Example/CMakeLists.txt
Add an example to Anonymize a file (Loadong or not the pixels)
[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     
14 #the following are utilities
15   PrintDicomDir
16   PrintDocument
17   PrintFile
18   PrintHeader
19   FindTags
20   MakeDicomDir
21
22 #the following will be transformed into 'examples', or 'utilities'
23 #              or will be removed
24
25   FlatHashTablePrint
26   TestCopyDicom
27   TestChangeHeader
28   TestFromScratch
29   TestWrite
30   TestWriteSimple
31   Volume2Dicom
32   WriteDicomSimple
33   WriteRead
34 )
35
36 FOREACH(name ${EXAMPLE_SOURCES})
37   ADD_EXECUTABLE(${name} ${name}.cxx)
38   TARGET_LINK_LIBRARIES(${name} gdcm)
39 ENDFOREACH(name)
40