]> Creatis software - cpPlugins.git/blobdiff - appli/examples/CMakeLists.txt
merge async example
[cpPlugins.git] / appli / examples / CMakeLists.txt
index ee0d4fe8440295bcc5e4846fb51940136bd193f3..b76208835a521e9393bf14002c4629e94d4a51f0 100644 (file)
@@ -4,12 +4,31 @@
 ## =========================
 
 SET(
-  EXAMPLES_PROGRAMS
+  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
-  example_ReadWriteImage
-  example_View2DImage
-  example_Test_async
+  )
+
+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
@@ -20,8 +39,7 @@ SET(
   ##example_MPR
   )
 
-
-FOREACH(prog ${EXAMPLES_PROGRAMS}) 
+FOREACH(prog ${EXAMPLES_PROGRAMS_WITH_PLUGINS}) 
   ADD_EXECUTABLE(
     ${prog}
     ${prog}.cxx
@@ -37,6 +55,7 @@ SET(
   NOPLUGINS_EXAMPLES_PROGRAMS
   example_BaseInteractorStyle
   example_ContourWidget
+  example_Test_async
   ## example_Test_DoubleClick
   ## example_ExtractDICOMSeries
   ## example_ImageGaussianModelEstimator