X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2Fexamples%2FCMakeLists.txt;h=6e989b328372802e16000eab3ccee33c067114a7;hb=9f494b26ae4e5de45b4c2119a10de67ac0beeedf;hp=248b052d11796c461364eb478779435d6acf1575;hpb=61e052afc5b659224bbc85b7d15b93402ea7d5a7;p=cpPlugins.git diff --git a/appli/examples/CMakeLists.txt b/appli/examples/CMakeLists.txt index 248b052..6e989b3 100644 --- a/appli/examples/CMakeLists.txt +++ b/appli/examples/CMakeLists.txt @@ -1,24 +1,7 @@ -## ========================= -## = Command line programs = -## ========================= - -SET( - EXAMPLES_PROGRAMS - example_LoadPlugins - example_ReadWriteImage - example_ReadImageSeriesWriteImage - ) - -FOREACH(prog ${EXAMPLES_PROGRAMS}) - ADD_EXECUTABLE( - ${prog} - ${prog}.cxx - ) - TARGET_LINK_LIBRARIES( - ${prog} - cpPlugins_Interface - ) -ENDFOREACH(prog) +OPTION(BUILD_EXAMPLES "Build examples" OFF) +IF(BUILD_EXAMPLES) + SUBDIRS(plugins) +ENDIF(BUILD_EXAMPLES) ## eof - $RCSfile$