X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Example%2FCMakeLists.txt;h=49a7f835864dfb2fb9ef5055999fa815ef528c52;hb=25c9af365d9221bd45f3fbe27275ff0f66a265b1;hp=449533c94b29e4851ec7d99dda92c81fa7a48d57;hpb=e721c5ac27a49a7e4b1aafe426681acb6b9d12bf;p=gdcm.git diff --git a/Example/CMakeLists.txt b/Example/CMakeLists.txt index 449533c9..49a7f835 100644 --- a/Example/CMakeLists.txt +++ b/Example/CMakeLists.txt @@ -1,18 +1,40 @@ -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 + exBuildUpDicomDir + exReadPapyrus + exReadWriteFile + exAnonymize + +#the following are utilities + PrintDicomDir + PrintDocument + PrintFile + PrintHeader + FindTags + MakeDicomDir + +#the following will be transformed into 'examples', or 'utilities' +# or will be removed + + FlatHashTablePrint + TestCopyDicom + TestChangeHeader + TestFromScratch + TestWrite + TestWriteSimple + Volume2Dicom + WriteDicomSimple + WriteRead +) -ADD_EXECUTABLE(PrintDocument PrintDocument.cxx) -TARGET_LINK_LIBRARIES(PrintDocument gdcm) +FOREACH(name ${EXAMPLE_SOURCES}) + ADD_EXECUTABLE(${name} ${name}.cxx) + TARGET_LINK_LIBRARIES(${name} gdcm) +ENDFOREACH(name) -ADD_EXECUTABLE(WriteRead WriteRead.cxx) -TARGET_LINK_LIBRARIES(WriteRead gdcm)