/usr/lib/cmake/paraview/ParaViewPluginPackaging.cmake is in paraview-dev 4.0.1-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # File containing all the macros that aid in packaging plugins with ParaView (or
# other applications). This doesn't include the macros for creating the plugins,
# those are in ParaViewPlugins.cmake.
INCLUDE(${ParaView_CMAKE_DIR}/ParaViewPlugins.cmake)
# Add an optional plugin.
# Arguments:
# name -- name of the plugin
# comment
# subdirectory --- directory containing the plugin code
# default -- default value for the plugin
MACRO(paraview_build_optional_plugin name comment subdirectory default)
OPTION(PARAVIEW_BUILD_PLUGIN_${name} "Build ${comment}" ${default})
MARK_AS_ADVANCED(PARAVIEW_BUILD_PLUGIN_${name})
IF(PARAVIEW_BUILD_PLUGIN_${name})
MESSAGE(STATUS "Plugin: ${comment} enabled")
ADD_SUBDIRECTORY("${subdirectory}")
ELSE(PARAVIEW_BUILD_PLUGIN_${name})
MESSAGE(STATUS "Plugin: ${comment} disabled")
ENDIF(PARAVIEW_BUILD_PLUGIN_${name})
ENDMACRO(paraview_build_optional_plugin)
|