X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=appli%2Fexamples%2FCMakeLists.txt;h=6e989b328372802e16000eab3ccee33c067114a7;hb=c9a6823af5463e7063bf9d2619f4b5e0ad8e785e;hp=b76208835a521e9393bf14002c4629e94d4a51f0;hpb=c3a5b1389e4a95ec18860f6b350298a8eef5cc22;p=cpPlugins.git diff --git a/appli/examples/CMakeLists.txt b/appli/examples/CMakeLists.txt index b762088..6e989b3 100644 --- a/appli/examples/CMakeLists.txt +++ b/appli/examples/CMakeLists.txt @@ -1,85 +1,7 @@ -## ========================= -## = Command line programs = -## ========================= - -SET( - EXAMPLES_PROGRAMS_ONLY_EXTENSIONS - example_TestQuadSplitter - ) - -FOREACH(prog ${EXAMPLES_PROGRAMS_ONLY_EXTENSIONS}) - ADD_EXECUTABLE(${prog} ${prog}.cxx) - TARGET_LINK_LIBRARIES(${prog} cpExtensions) -ENDFOREACH(prog) - -SET( - EXAMPLES_PROGRAMS_ONLY_INTERFACE - example_TestParameters - example_LoadPlugins - ) - -FOREACH(prog ${EXAMPLES_PROGRAMS_ONLY_INTERFACE}) - ADD_EXECUTABLE(${prog} ${prog}.cxx) - TARGET_LINK_LIBRARIES(${prog} cpPlugins_Interface) -ENDFOREACH(prog) - -SET( - EXAMPLES_PROGRAMS_WITH_PLUGINS - #example_ReadWriteImage - #example_MPR - #example_View2DImage - ##example_MarchingCubes - ##example_OtsuFilter - ##example_RGBImageToHSVChannels - ##example_RGBImageToYPbPrChannels - ## example_ReadImageSeriesWriteImage - ## example_ReadQuadEdgeMesh - ## example_RenderQuadEdgeMesh - ##example_MPR - ) - -FOREACH(prog ${EXAMPLES_PROGRAMS_WITH_PLUGINS}) - ADD_EXECUTABLE( - ${prog} - ${prog}.cxx - ) - TARGET_LINK_LIBRARIES( - ${prog} - cpExtensions - cpPlugins_Interface - ) -ENDFOREACH(prog) - -SET( - NOPLUGINS_EXAMPLES_PROGRAMS - example_BaseInteractorStyle - example_ContourWidget - example_Test_async - ## example_Test_DoubleClick - ## example_ExtractDICOMSeries - ## example_ImageGaussianModelEstimator - ## example_ReadQuadEdgeMeshWithoutPlugins - ## example_RenderQuadEdgeMeshWithoutPlugins - ## example_ParallelImageMean - ## example_LightCompensation - ## example_1DImageGradient - ## example_2DImageGradient - ## example_3DImageGradient - ## example_2DGulsunTekMedialness - ## example_3DGulsunTekMedialness - ## example_KalmanVelocity - ) -FOREACH(prog ${NOPLUGINS_EXAMPLES_PROGRAMS}) - ADD_EXECUTABLE( - ${prog} - ${prog}.cxx - ) - TARGET_LINK_LIBRARIES( - ${prog} - ${ITK_LIBRARIES} - cpExtensions - ) -ENDFOREACH(prog) +OPTION(BUILD_EXAMPLES "Build examples" OFF) +IF(BUILD_EXAMPLES) + SUBDIRS(plugins) +ENDIF(BUILD_EXAMPLES) ## eof - $RCSfile$