]> Creatis software - cpPlugins.git/blobdiff - appli/examples/plugins/CMakeLists.txt
...
[cpPlugins.git] / appli / examples / plugins / CMakeLists.txt
diff --git a/appli/examples/plugins/CMakeLists.txt b/appli/examples/plugins/CMakeLists.txt
new file mode 100644 (file)
index 0000000..b7638a8
--- /dev/null
@@ -0,0 +1,28 @@
+## ============================
+## == Configure source files ==
+## ============================
+
+SET(_pfx example_plugins)
+SET(
+  _all_progs
+  test
+  GuessPlugins
+  LoadPluginsFile
+  LoadPluginsDirectory
+  CreateCylinderAndSave
+  )
+
+## ==========================
+## == Compile source files ==
+## ==========================
+
+INCLUDE_DIRECTORIES(
+  ${PROJECT_SOURCE_DIR}/lib
+  ${PROJECT_BINARY_DIR}/lib
+  )
+FOREACH(_s ${_all_progs})
+  ADD_EXECUTABLE(${_pfx}_${_s} ${_s}.cxx)
+  TARGET_LINK_LIBRARIES(${_pfx}_${_s} cpPlugins)
+ENDFOREACH(_s)
+
+## eof - $RCSfile$