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