]> Creatis software - cpPlugins.git/blobdiff - appli/examples/CMakeLists.txt
Cast image filter added. ROI filter modified.
[cpPlugins.git] / appli / examples / CMakeLists.txt
index 248b052d11796c461364eb478779435d6acf1575..6e989b328372802e16000eab3ccee33c067114a7 100644 (file)
@@ -1,24 +1,7 @@
 
-## =========================
-## = Command line programs =
-## =========================
-
-SET(
-  EXAMPLES_PROGRAMS
-  example_LoadPlugins
-  example_ReadWriteImage
-  example_ReadImageSeriesWriteImage
-  )
-
-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$