]> Creatis software - gdcm.git/blob - Example/CMakeLists.txt
Update
[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   exMakeIcon
28   
29   # the following are utilities
30   #----------------------------  
31   PrintDicomDir  
32   PrintFile  
33   MakeDicomDir  
34   AnonymizeDicomDir     # without loading it as a gdcm::DicomDir  
35   Anonymize             # for full gdcm readable files  
36   AnonymizeNoLoad       # without loading the Pixel Data  
37   AnonymizeMultiPatient # without loading the Pixel Data  
38   PatchHeader  
39   ToInTag  
40   ReWrite  
41   #ReWriteExtended  
42   RawToDicom  
43   TestValidate
44   
45   # the following produce usable files for some softwares.
46   #------------------------------------------------------   
47   ToMRIregister
48   DenseMultiFramesToDicom
49   Dense2007ToDicom
50   #BatchUncompress
51     
52   #the following will be transformed into 'examples', or 'utilities'
53   #              or will be removed
54   # Better you don't use them (not fully checked ...)   
55   FindTags  
56   FlatHashTablePrint  
57   Volume2Dicom  
58   WriteDicomSimple  
59
60   WriteRead
61   #WriteDicomAsJPEG2000  #Use ReWrite ... mode=2
62   #WriteDicomAsJPEG      #Use ReWrite ... mode=j
63
64   exCTPET  
65   #Slice
66 )
67
68 FOREACH(name ${EXAMPLE_SOURCES})  
69   ADD_EXECUTABLE(${name} ${name}.cxx )  
70   TARGET_LINK_LIBRARIES(${name} gdcm)  
71   INSTALL_TARGETS(/bin/ ${name})
72 ENDFOREACH(name)