]> Creatis software - cpPlugins.git/blobdiff - appli/examples/CMakeLists.txt
sphere widget update
[cpPlugins.git] / appli / examples / CMakeLists.txt
index 586eddf18764c678ea82b15248fef7bb6e52442a..79d2338f00d2db3dd0e5b9c69ddd05a8aca81018 100644 (file)
@@ -4,21 +4,45 @@
 ## =========================
 
 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
-  example_MarchingCubes
-  example_OtsuFilter
-  example_RGBImageToHSVChannels
-  example_RGBImageToYPbPrChannels
+  )
+
+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
+  ##example_RGBImageToYPbPrChannels
   ## example_ReadImageSeriesWriteImage
   ## example_ReadQuadEdgeMesh
   ## example_RenderQuadEdgeMesh
-  example_MPR
+  ##example_MPR
   )
 
-FOREACH(prog ${EXAMPLES_PROGRAMS}) 
+FOREACH(prog ${EXAMPLES_PROGRAMS_WITH_PLUGINS}) 
   ADD_EXECUTABLE(
     ${prog}
     ${prog}.cxx
@@ -27,11 +51,18 @@ 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
   ## example_ReadQuadEdgeMeshWithoutPlugins