X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FCMakeLists.txt;h=b0ddbcb650eb40fb9e8395bb3f331c70f457f122;hb=90c918a795e4a1892af2cd120eb20d6311499387;hp=59525c6752887ebb792f1cdd9e48e07cd7aa76e5;hpb=74fccf1190246de80a78735ce73b783c488d1113;p=gdcm.git diff --git a/Example/CMakeLists.txt b/Example/CMakeLists.txt index 59525c67..b0ddbcb6 100644 --- a/Example/CMakeLists.txt +++ b/Example/CMakeLists.txt @@ -1,12 +1,50 @@ -SET(EXAMPLE_SOURCES - WriteDicom.cxx -) - # include stuff INCLUDE_DIRECTORIES( ${GDCM_SOURCE_DIR}/src/ ${GDCM_BINARY_DIR}/ ) -ADD_EXECUTABLE(WriteDicom WriteDicom.cxx) -TARGET_LINK_LIBRARIES(WriteDicom gdcm) +SET(EXAMPLE_SOURCES +#names starting with 'ex' are examples + exReadPapyrus + exReadWriteFile + exColorToRGB + exGrey2RGB + exGC + exImageLighten + exOverlaysACR + exSerieHelper + +#the following are utilities + PrintDicomDir + PrintFile + MakeDicomDir + AnonymizeDicomDir # without loading it as a gdcm::DicomDir + Anonymize # for full gdcm readable files + AnonymizeNoLoad # without loading the Pixel Data + PatchHeader + ReWrite + +#the following will be transformed into 'examples', or 'utilities' +# or will be removed +# +# Better you don't use them (not fully checked ...) + + FindTags + FlatHashTablePrint + TestCopyDicom + TestChangeHeader + TestFromScratch + TestWrite + TestWriteSimple + Volume2Dicom + WriteDicomSimple + WriteRead +) + +FOREACH(name ${EXAMPLE_SOURCES}) + ADD_EXECUTABLE(${name} ${name}.cxx) + TARGET_LINK_LIBRARIES(${name} gdcm) + INSTALL_TARGETS(/bin/ ${name}) +ENDFOREACH(name) +