]> Creatis software - cpPlugins.git/blobdiff - appli/examples/CMakeLists.txt
Widget integration (step 5/6): Interactive plugins now supported, widgets updates...
[cpPlugins.git] / appli / examples / CMakeLists.txt
index afbe04113da493603eea136ba984915891356b58..2fd980d419444ec1760a211f143f1a3299a2a46d 100644 (file)
@@ -4,9 +4,28 @@
 ## =========================
 
 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
+  )
+
+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_View2DImage
   ##example_MarchingCubes