X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FCMakeLists.txt;h=328f2f03600d724ddc5bc1612eccde9c274c6f33;hb=446ab2af0e3045cd559b086ced08a8cc5a61d2e2;hp=0111b05aa8c51903593a0f41552b93d7d71959e3;hpb=16887ff26b068405a235a6a8a37f4e62516de393;p=gdcm.git diff --git a/Example/CMakeLists.txt b/Example/CMakeLists.txt index 0111b05a..328f2f03 100644 --- a/Example/CMakeLists.txt +++ b/Example/CMakeLists.txt @@ -1,15 +1,33 @@ -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 + TestReadWriteReadCompare + TestDcm2Acr + TestWrite + TestWriteSimple + Volume2Dicom + WriteDicomSimple + Write + WriteRead + WriteDicom +) + +FOREACH(name ${EXAMPLE_SOURCES}) + ADD_EXECUTABLE(${name} ${name}.cxx) + TARGET_LINK_LIBRARIES(${name} gdcm) +ENDFOREACH(name) -ADD_EXECUTABLE(PrintDocument PrintDocument.cxx) -TARGET_LINK_LIBRARIES(PrintDocument gdcm)