X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2Fexamples%2FCMakeLists.txt;h=79d2338f00d2db3dd0e5b9c69ddd05a8aca81018;hb=64ee1e8924a88841c1c943fef576860402e0777c;hp=afbe04113da493603eea136ba984915891356b58;hpb=dba64a6906e88d6023b2e6c9632da9fd41bfeb53;p=cpPlugins.git diff --git a/appli/examples/CMakeLists.txt b/appli/examples/CMakeLists.txt index afbe041..79d2338 100644 --- a/appli/examples/CMakeLists.txt +++ b/appli/examples/CMakeLists.txt @@ -4,11 +4,34 @@ ## ========================= SET( - EXAMPLES_PROGRAMS + EXAMPLES_PROGRAMS_ONLY_EXTENSIONS + ) + +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 - example_ReadWriteImage + ) + +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_HandleWidget + example_SeedWidget + example_SphereWidget + example_Test_Memento ##example_MarchingCubes ##example_OtsuFilter ##example_RGBImageToHSVChannels @@ -19,8 +42,7 @@ SET( ##example_MPR ) - -FOREACH(prog ${EXAMPLES_PROGRAMS}) +FOREACH(prog ${EXAMPLES_PROGRAMS_WITH_PLUGINS}) ADD_EXECUTABLE( ${prog} ${prog}.cxx @@ -29,13 +51,17 @@ FOREACH(prog ${EXAMPLES_PROGRAMS}) ${prog} cpExtensions cpPlugins_Interface + ) ENDFOREACH(prog) SET( NOPLUGINS_EXAMPLES_PROGRAMS example_BaseInteractorStyle + example_ContourWidget + ##example_Test_async + ## example_MacheteFilter ## example_Test_DoubleClick ## example_ExtractDICOMSeries ## example_ImageGaussianModelEstimator