Salome HOME
Addition of Bivariate noise representation to deal with 2D/3D uncertainties visualization
[modules/paravis.git] / src / Plugins / BivariateRepresentations / CMakeLists.txt
diff --git a/src/Plugins/BivariateRepresentations/CMakeLists.txt b/src/Plugins/BivariateRepresentations/CMakeLists.txt
new file mode 100644 (file)
index 0000000..071d019
--- /dev/null
@@ -0,0 +1,39 @@
+cmake_minimum_required(VERSION 3.8)
+
+#project(BivariateRepresentations)
+set(PROJECT_NAME BivariateRepresentations)
+set(CMAKE_PROJECT_NAME BivariateRepresentations)
+find_package(ParaView REQUIRED)
+
+option(BUILD_SHARED_LIBS "Build shared libraries" ON)
+enable_testing()
+
+include(GNUInstallDirs)
+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}")
+set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
+set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
+
+set("_paraview_plugin_default_${CMAKE_PROJECT_NAME}" ON)
+paraview_plugin_scan(
+  PLUGIN_FILES      "${CMAKE_CURRENT_SOURCE_DIR}/Plugin/paraview.plugin"
+  PROVIDES_PLUGINS  plugins
+  REQUIRES_MODULES  required_modules)
+
+foreach (module IN LISTS required_modules)
+  if (NOT TARGET "${module}")
+    message(#FATAL_ERROR
+      "Skipping example ${CMAKE_PROJECT_NAME}: Missing required module: "
+      "${module}")
+    return ()
+  endif ()
+endforeach ()
+
+paraview_plugin_build(
+  RUNTIME_DESTINATION "${CMAKE_INSTALL_BINDIR}"
+  LIBRARY_DESTINATION "${CMAKE_INSTALL_LIBDIR}"
+  LIBRARY_SUBDIRECTORY "${PARAVIEW_PLUGIN_SUBDIR}"
+  PLUGINS ${plugins})
+
+# ????? rollback CMAKE_PROJECT_NAME
+set(PROJECT_NAME SalomePARAVIS)
+set(CMAKE_PROJECT_NAME SalomePARAVIS)