X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FCMakeLists.txt;h=3eb21a2f2107b21d84b33c49246056bc4c1c09b7;hb=c8674b38365e7959fddbce5467e5bc82bb1ed550;hp=449533c94b29e4851ec7d99dda92c81fa7a48d57;hpb=e721c5ac27a49a7e4b1aafe426681acb6b9d12bf;p=gdcm.git diff --git a/Example/CMakeLists.txt b/Example/CMakeLists.txt index 449533c9..3eb21a2f 100644 --- a/Example/CMakeLists.txt +++ b/Example/CMakeLists.txt @@ -1,18 +1,34 @@ -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 + BuildUpDicomDir + FindTags + FlatHashTablePrint + makeDicomDir + PrintDocument + PrintFile + PrintHeader + PrintDicomDir + TestCopyDicom + TestChangeHeader + TestFromScratch + TestReadWriteReadCompare + TestDcm2Acr + TestWrite + TestWriteSimple + Volume2Dicom + WriteDicomSimple + Write + WriteRead + WriteDicom +) -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)