]> Creatis software - cpPlugins.git/blobdiff - appli/examples/CMakeLists.txt
Cast image filter added. ROI filter modified.
[cpPlugins.git] / appli / examples / CMakeLists.txt
index 2a29508ba3c3735abf43fc9e602e6daba2751263..6e989b328372802e16000eab3ccee33c067114a7 100644 (file)
@@ -1,28 +1,7 @@
 
-## =========================
-## = Command line programs =
-## =========================
-
-SET(
-  EXAMPLES_PROGRAMS
-  example_LoadPlugins
-  example_ReadWriteImage
-  example_ReadImageSeriesWriteImage
-  example_ReadQuadEdgeMesh
-  example_ReadQuadEdgeMeshWithoutPlugins
-  example_RenderQuadEdgeMesh
-  example_RenderQuadEdgeMeshWithoutPlugins
-  )
-
-FOREACH(prog ${EXAMPLES_PROGRAMS}) 
-  ADD_EXECUTABLE(
-    ${prog}
-    ${prog}.cxx
-    )
-  TARGET_LINK_LIBRARIES(
-    ${prog}
-    cpPlugins_Interface
-    )
-ENDFOREACH(prog)
+OPTION(BUILD_EXAMPLES "Build examples" OFF)
+IF(BUILD_EXAMPLES)
+  SUBDIRS(plugins)
+ENDIF(BUILD_EXAMPLES)
 
 ## eof - $RCSfile$