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