X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2Fexamples%2FCMakeLists.txt;h=6e989b328372802e16000eab3ccee33c067114a7;hb=f1747c7248d5eead5ea9d7e57bda0b081bcef065;hp=ff76b4d6a39f64a67a7b6f072d4a279d4204e295;hpb=2d96cce7bcab0bdcd9e93e44ed413c47388151d9;p=cpPlugins.git diff --git a/appli/examples/CMakeLists.txt b/appli/examples/CMakeLists.txt index ff76b4d..6e989b3 100644 --- a/appli/examples/CMakeLists.txt +++ b/appli/examples/CMakeLists.txt @@ -1,25 +1,7 @@ -## ========================= -## = Command line programs = -## ========================= - -SET( - EXAMPLES_PROGRAMS - example_LoadPlugins - example_ReadWriteImage - example_ReadImageSeriesWriteImage - example_ReadQuadEdgeMeshWithoutPlugins - ) - -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$