X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=Example%2FCMakeLists.txt;h=e9f8d4ea9e290e65695ad73bfd205cd14abd2d47;hb=e30e614e7f63b52306d85040068e2205a9e6327a;hp=1d6156c8636a15c8d9a3ad757649ac87649df691;hpb=cba27e8db47fefa11652b98dd81d782c13eb9a80;p=gdcm.git diff --git a/Example/CMakeLists.txt b/Example/CMakeLists.txt index 1d6156c8..e9f8d4ea 100644 --- a/Example/CMakeLists.txt +++ b/Example/CMakeLists.txt @@ -1,25 +1,35 @@ -SET(EXAMPLE_SOURCES - WriteDicom.cxx -) - # include stuff INCLUDE_DIRECTORIES( ${GDCM_SOURCE_DIR}/src/ ${GDCM_BINARY_DIR}/ ) +SET(EXAMPLE_SOURCES + BuildUpDicomDir + FindTags + FlatHashTablePrint + makeDicomDir + PrintDocument + PrintFile + PrintHeader + PrintDicomDir + TestCopyDicom + TestChangeHeader + TestFromScratch + TestReadWriteReadCompare + TestDcm2Acr + TestPapyrus + TestWrite + TestWriteSimple + Volume2Dicom + WriteDicomSimple + Write + WriteRead + WriteDicom +) -ADD_EXECUTABLE(PrintDocument PrintDocument.cxx) -TARGET_LINK_LIBRARIES(PrintDocument gdcm) - -ADD_EXECUTABLE(PrintFile PrintFile.cxx) -TARGET_LINK_LIBRARIES(PrintFile gdcm) - -ADD_EXECUTABLE(Write Write.cxx) -TARGET_LINK_LIBRARIES(Write gdcm) - -ADD_EXECUTABLE(WriteDicom WriteDicom.cxx) -TARGET_LINK_LIBRARIES(WriteDicom 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)