-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
29 lines (23 loc) · 953 Bytes
/
CMakeLists.txt
File metadata and controls
29 lines (23 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
set(PluginName RotationSpeed)
project(${PluginName})
include(GNUInstallDirs)
set(CMAKE_CXX_STANDARD 11)
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(BUILD_SHARED_LIBS ON)
if (NOT ParaView_BINARY_DIR)
find_package(ParaView REQUIRED)
endif()
# Scan the plugin file in order to set up internal data structures for building
# plugins.
paraview_plugin_scan(
# The `paraview.plugin` file describing the plugin.
PLUGIN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/Rotation/paraview.plugin"
# A result variable for the (enabled) plugins found during the scan.
PROVIDES_PLUGINS plugins
# Enable plugins during this scan by default.
ENABLE_BY_DEFAULT ON)
paraview_plugin_build(
PLUGINS ${plugins})