]> Creatis software - gdcm.git/blob - Example/CMakeLists.txt
df209e4c3f7009cb3e1b89f1b749177c69b9096a
[gdcm.git] / Example / CMakeLists.txt
1 # include stuff
2 INCLUDE_DIRECTORIES(  
3   ${GDCM_SOURCE_DIR}/src  
4   ${GDCM_BINARY_DIR}  
5   ${GDCM_BINARY_DIR}/src)
6 SET(EXAMPLE_SOURCES
7   #names starting with 'ex' are examples
8   #-------------------------------------      
9   #Txt2Mat  
10   #exDicomRTStructSetFile  
11   #exExtractCSA
12  
13   exReadPapyrus  
14   exReadWriteFile  
15   exColorToRGB  
16   exGrey2RGB  
17   exGC
18   exImageLighten  
19   #exInLine  
20   exExtractOverlaysACR # Extracts ACR-NEMA style overlays 
21   exExtractOverlaysDCM # Extracts DICOM style overlays
22   exExtractDicomTags
23   exExtractTag         
24   exCurveData  
25   exSerieHelper
26   exXCoherentFileSet
27   exMoveImagesToSingleSerieUID
28   #exExtractSegmentedPalette
29   exMakeIcon
30   
31   # the following are utilities
32   #----------------------------
33   #BrukerToMhd
34   RawToInTagDicom
35   RawToDicomStack  
36   PrintDicomDir  
37   PrintFile  
38   MakeDicomDir  
39   AnonymizeDicomDir     # without loading it as a gdcm::DicomDir  
40   Anonymize             # for full gdcm readable files  
41   AnonymizeNoLoad       # without loading the Pixel Data  
42   AnonymizeMultiPatient # without loading the Pixel Data  
43   AnonymizeReWriteMultiPatient # without loading the Pixel Data  
44   PatchHeader  
45   ToInTag  
46   ReWrite  
47   #ReWriteExtended  
48   RawToDicom  
49   TestValidate
50   
51  SplitIntoDirectories
52  SplitIntoXCoherentDirectories
53  SplitIntoXCoherentDirectoriesIgnoreSerieUID 
54   
55   # the following produce usable files for some softwares.
56   #------------------------------------------------------   
57   ToMRIregister
58   DenseMultiFramesToDicom
59   Dense2007ToDicom
60   PcpdenseToDicom
61     
62   #BatchUncompress
63     
64   #the following will be transformed into 'examples', or 'utilities'
65   #              or will be removed
66   # Better you don't use them (not fully checked ...)   
67   FindTags  
68   FlatHashTablePrint  
69   Volume2Dicom  
70   WriteDicomSimple  
71
72   WriteRead
73   #WriteDicomAsJPEG2000  #Use ReWrite ... mode=2
74   #WriteDicomAsJPEG      #Use ReWrite ... mode=j
75
76   exCTPET  
77   #Slice
78 )
79
80 FOREACH(name ${EXAMPLE_SOURCES})  
81   ADD_EXECUTABLE(${name} ${name}.cxx )  
82   TARGET_LINK_LIBRARIES(${name} gdcm)  
83   INSTALL_TARGETS(/bin/ ${name})
84 ENDFOREACH(name)