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