X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2Fexamples%2FCMakeLists.txt;h=6e989b328372802e16000eab3ccee33c067114a7;hb=c9a6823af5463e7063bf9d2619f4b5e0ad8e785e;hp=8ef86f17b9fd9488bfeb0e50ff6816f222b7e2ce;hpb=d1641ad5bb3587c30c473e78a6ae060a19d7a60e;p=cpPlugins.git diff --git a/appli/examples/CMakeLists.txt b/appli/examples/CMakeLists.txt index 8ef86f1..6e989b3 100644 --- a/appli/examples/CMakeLists.txt +++ b/appli/examples/CMakeLists.txt @@ -1,46 +1,7 @@ -## ========================= -## = Command line programs = -## ========================= - -SET( - EXAMPLES_PROGRAMS - example_TestParameters - 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) - -SET( - NOPLUGINS_EXAMPLES_PROGRAMS - example_ImageGaussianModelEstimator - ) -FOREACH(prog ${NOPLUGINS_EXAMPLES_PROGRAMS}) - ADD_EXECUTABLE( - ${prog} - ${prog}.cxx - ) - TARGET_LINK_LIBRARIES( - ${prog} - ${ITK_LIBRARIES} - ) -ENDFOREACH(prog) +OPTION(BUILD_EXAMPLES "Build examples" OFF) +IF(BUILD_EXAMPLES) + SUBDIRS(plugins) +ENDIF(BUILD_EXAMPLES) ## eof - $RCSfile$