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