]> Creatis software - gdcm.git/blobdiff - Example/CMakeLists.txt
* Builder/ : add something to facilitate the RPM creation of gdcm
[gdcm.git] / Example / CMakeLists.txt
index 99404d4b808054d4415156568b5b89715401abb2..1514d219ea4ec68e8cab25c2e3b5829a3736d8f5 100644 (file)
@@ -5,28 +5,43 @@ INCLUDE_DIRECTORIES(
 )
 
 SET(EXAMPLE_SOURCES
-  BuildUpDicomDir
-  FindTags
-  FlatHashTablePrint
-  MakeDicomDir
+#names starting with 'ex' are examples  
+  exBuildUpDicomDir
+  exReadPapyrus
+  exReadWriteFile
+  exAnonymize
+  exAnonymizeNoLoad  # without loading the Pixel Data
+  exColorToRGB
+  exGC
+  exImageLighten
+            
+#the following are utilities
+  PrintDicomDir
   PrintDocument
   PrintFile
   PrintHeader
-  PrintDicomDir
+  FindTags
+  MakeDicomDir
+  AnonymizeDicomDir # without loading it as a gdcm::DicomDir
+
+#the following will be transformed into 'examples', or 'utilities'
+#              or will be removed
+  #test
+  FlatHashTablePrint
   TestCopyDicom
   TestChangeHeader
   TestFromScratch
-  TestPapyrus
   TestWrite
   TestWriteSimple
   Volume2Dicom
   WriteDicomSimple
   WriteRead
-  WriteDicom
 )
 
 FOREACH(name ${EXAMPLE_SOURCES})
   ADD_EXECUTABLE(${name} ${name}.cxx)
   TARGET_LINK_LIBRARIES(${name} gdcm)
+  INSTALL_TARGETS(/bin/ ${name})
 ENDFOREACH(name)