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