]> Creatis software - cpPlugins.git/blobdiff - appli/examples/CMakeLists.txt
More on graph editor
[cpPlugins.git] / appli / examples / CMakeLists.txt
index ee0d4fe8440295bcc5e4846fb51940136bd193f3..9938095c1f875fb542428356ca3240383905e8fc 100644 (file)
@@ -4,13 +4,38 @@
 ## =========================
 
 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_LoadPluginsFromPath
+  example_WorkspaceSandBox
+  )
+
+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_MarchingCubes
+  #example_MPR
   example_View2DImage
-  example_Test_async
-  ##example_MarchingCubes
+  example_ViewImageThreshold
+  example_HandleWidget
+  example_SeedWidget
+  example_SphereWidget
+  example_Test_Memento
   ##example_OtsuFilter
   ##example_RGBImageToHSVChannels
   ##example_RGBImageToYPbPrChannels
@@ -20,8 +45,7 @@ SET(
   ##example_MPR
   )
 
-
-FOREACH(prog ${EXAMPLES_PROGRAMS}) 
+FOREACH(prog ${EXAMPLES_PROGRAMS_WITH_PLUGINS}) 
   ADD_EXECUTABLE(
     ${prog}
     ${prog}.cxx
@@ -36,7 +60,10 @@ ENDFOREACH(prog)
 SET(
   NOPLUGINS_EXAMPLES_PROGRAMS
   example_BaseInteractorStyle
+  
   example_ContourWidget
+  ##example_Test_async
+  ## example_MacheteFilter
   ## example_Test_DoubleClick
   ## example_ExtractDICOMSeries
   ## example_ImageGaussianModelEstimator