Commit 59bdcfb3 authored by Mark Olesen's avatar Mark Olesen

ENH: improve installation handling

- uses updated cmake/paraview scripts (1912, patch=200506)
  to support a user-specified installation prefix.

  Reworked the wmake Make/{files,options} files to respect the use
  of CMAKE_INSTALL_PREFIX, or default to FOAM_LIBBIN.

  Similarly the CMakeLists files have been updated to add install
  targets that respect the value of CMAKE_INSTALL_PREFIX.

  For building with paraview-5.7 and 5.8 a "staged" install is used
  to retain the expected output directory structure and to silently
  discard the unneeded static libraries.
parent 556d0a76
#!/bin/sh #!/bin/sh
cd "${0%/*}" || exit # Run from this directory cd "${0%/*}" || exit # Run from this directory
targetType=libso targetType=libso
. ${WM_PROJECT_DIR:?}/wmake/scripts/wmake.cmake-args
. ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
module=visualization module=visualization
......
#!/bin/sh #!/bin/sh
cd "${0%/*}" || exit # Run from this directory cd "${0%/*}" || exit # Run from this directory
targetType=libso targetType=libso
. ${WM_PROJECT_DIR:?}/wmake/scripts/wmake.cmake-args
. ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments . ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
......
#!/bin/sh #!/bin/sh
cd "${0%/*}" || exit # Run from this directory cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/wmake/scripts/cmakeFunctions # The cmake functions export WM_CONTINUE_ON_ERROR=true # Optional unit
. ${WM_PROJECT_DIR:?}/wmake/scripts/cmakeFunctions # Cmake functions
. ${WM_PROJECT_DIR:?}/wmake/scripts/wmake.cmake-args
. ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments
#------------------------------------------------------------------------------
# Copyright (C) 2020 OpenCFD Ltd.
# This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
#
# Note
# - use '-prefix=..' to define installation prefix (default: FOAM_LIBBIN)
# - MPI detection may not work properly with later VTK/ParaView versions
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Installation prefix: user/group/other or custom
case "$1" in
-prefix=u) prefix="${FOAM_USER_LIBBIN%/*}" ;; # user
-prefix=g) prefix="${FOAM_SITE_LIBBIN%/*}" ;; # group
-prefix=o) prefix="${FOAM_LIBBIN%/*}" ;; # other/openfoam
-prefix=*) prefix="${1#*=}" ;;
esac
# Default is openfoam (FOAM_LIBBIN) # Default is openfoam (FOAM_LIBBIN)
: "${prefix:=$WM_PROJECT_DIR/platforms/$WM_OPTIONS}" : "${CMAKE_INSTALL_PREFIX:=${FOAM_LIBBIN%/*}}"
cmakeOpts="-DCMAKE_INSTALL_PREFIX=$prefix" unset cmakeOpts
if [ -n "$CMAKE_INSTALL_PREFIX" ]
then
export CMAKE_INSTALL_PREFIX
cmakeOpts="-DCMAKE_INSTALL_PREFIX=$CMAKE_INSTALL_PREFIX"
fi
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
...@@ -22,7 +29,15 @@ echo "======================================================================" ...@@ -22,7 +29,15 @@ echo "======================================================================"
echo "${PWD##*/} : $PWD" echo "${PWD##*/} : $PWD"
echo echo
unset depend unset depend catalystDebug
# If available, prefer use of ParaView MESA
if [ -d "$ParaView_MESA_DIR" ]
then
export ParaView_DIR="$ParaView_MESA_DIR"
fi
if [ -d "$ParaView_DIR" ] if [ -d "$ParaView_DIR" ]
then then
depend="ParaView_DIR=$ParaView_DIR" depend="ParaView_DIR=$ParaView_DIR"
...@@ -36,8 +51,8 @@ elif [ -n "$depend" ] ...@@ -36,8 +51,8 @@ elif [ -n "$depend" ]
then then
if command -v cmake >/dev/null if command -v cmake >/dev/null
then then
echo "catalyst prefix : $prefix" echo "catalyst prefix : $CMAKE_INSTALL_PREFIX"
cmakeVersionedInstall "$depend" "$PWD" "$cmakeOpts" || { cmakeVersionedInstall "$depend" "$PWD" $cmakeOpts || {
echo echo
echo " WARNING: incomplete build of ParaView Catalyst" echo " WARNING: incomplete build of ParaView Catalyst"
echo echo
......
...@@ -12,6 +12,9 @@ else() ...@@ -12,6 +12,9 @@ else()
set(WM_OSTYPE "POSIX") set(WM_OSTYPE "POSIX")
endif() endif()
# Project libraries, as per wmake internals
set(FOAM_LIBBIN "$ENV{FOAM_LIBBIN}")
# Convenience name, as per wmake internals # Convenience name, as per wmake internals
set(LIB_SRC "$ENV{WM_PROJECT_DIR}/src") set(LIB_SRC "$ENV{WM_PROJECT_DIR}/src")
......
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
project(catalyst)
set(CMAKE_BUILD_TYPE Release)
# ----------------------------------------------------------------------
unset(LINK_LIBRARIES) unset(LINK_LIBRARIES)
# Prior to paraview-5.6 no working directory support in Catalyst # Prior to paraview-5.6 no working directory support in Catalyst
...@@ -13,16 +8,21 @@ if (${ParaView_VERSION} LESS 5.6) ...@@ -13,16 +8,21 @@ if (${ParaView_VERSION} LESS 5.6)
endif() endif()
if (${ParaView_VERSION} VERSION_GREATER_EQUAL 5.7) if (${ParaView_VERSION} VERSION_GREATER_EQUAL 5.7)
if (TARGET "VTK::ParallelMPI") if (TARGET VTK::ParallelMPI)
set(FOAM_USING_VTK_MPI TRUE) set(FOAM_USING_VTK_MPI TRUE)
endif() endif()
if (TARGET ParaView::PythonCatalyst)
message("has catalyst")
else()
message("no catalyst")
endif()
endif() endif()
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
link_directories( link_directories(
$ENV{FOAM_LIBBIN} ${FOAM_LIBBIN}
$ENV{FOAM_LIBBIN}/dummy ${FOAM_LIBBIN}/dummy
) )
include_directories( include_directories(
...@@ -61,7 +61,7 @@ file(GLOB SOURCE_FILES ...@@ -61,7 +61,7 @@ file(GLOB SOURCE_FILES
volMesh/foamVtkFvMeshAdaptorFields.C volMesh/foamVtkFvMeshAdaptorFields.C
) )
set(OPENFOAM_LIBRARIES set(OPENFOAM_LIBNAMES
OpenFOAM OpenFOAM
Pstream Pstream
finiteArea finiteArea
...@@ -90,7 +90,7 @@ target_link_libraries( ...@@ -90,7 +90,7 @@ target_link_libraries(
catalystFoam catalystFoam
${VTK_LIBRARIES} ${VTK_LIBRARIES}
${LINK_LIBRARIES} ${LINK_LIBRARIES}
${OPENFOAM_LIBRARIES} ${OPENFOAM_LIBNAMES}
) )
install(TARGETS catalystFoam DESTINATION lib) install(TARGETS catalystFoam DESTINATION lib)
......
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
project(catalyst)
cmake_minimum_required(VERSION 3.8) cmake_minimum_required(VERSION 3.8)
cmake_policy(SET CMP0002 NEW) # For cmake >= 3 cmake_policy(SET CMP0002 NEW) # For cmake >= 3
cmake_policy(SET CMP0057 NEW) # For cmake >= 3.10.2 cmake_policy(SET CMP0057 NEW) # For cmake >= 3.10.2
set(CMAKE_BUILD_TYPE Release)
# Fail if not building out-of-source # Fail if not building out-of-source
if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR) if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
...@@ -38,6 +41,8 @@ else() ...@@ -38,6 +41,8 @@ else()
## include(${PARAVIEW_USE_FILE}) ## include(${PARAVIEW_USE_FILE})
endif() endif()
include(GNUInstallDirs)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
message("================") message("================")
...@@ -46,12 +51,20 @@ message("Using ParaView = $ENV{ParaView_DIR}") ...@@ -46,12 +51,20 @@ message("Using ParaView = $ENV{ParaView_DIR}")
if (NOT PARAVIEW_USE_MPI) if (NOT PARAVIEW_USE_MPI)
message(WARNING "==== Recommended to build using ParaView Catalyst with MPI ====") message(WARNING "==== Recommended to build using ParaView Catalyst with MPI ====")
endif() endif()
message("install prefix = ${CMAKE_INSTALL_PREFIX}")
message("================")
#-----------------------------------------------------------------------------
include(CMakeLists-OpenFOAM.txt) include(CMakeLists-OpenFOAM.txt)
# Default is PROJECT target, with supporting libraries from FOAM_LIBBIN
# Possible temporary override with 'STAGED_INSTALL_PREFIX' later
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
get_filename_component(FOAM_PLATFORMS ${FOAM_LIBBIN} DIRECTORY)
set(CMAKE_INSTALL_PREFIX "${FOAM_PLATFORMS}"
CACHE PATH "Install path prefix" FORCE)
endif()
message("Install prefix = ${CMAKE_INSTALL_PREFIX}")
message("================")
include(CMakeLists-Project.txt) include(CMakeLists-Project.txt)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
...@@ -14,7 +14,7 @@ wclean libso foamReader/library ...@@ -14,7 +14,7 @@ wclean libso foamReader/library
# Cleanup client-server and/or combined plugins # Cleanup client-server and/or combined plugins
if [ -d "$FOAM_PV_PLUGIN_LIBBIN" ] if [ -d "$FOAM_PV_PLUGIN_LIBBIN" ]
then then
echo "Remaining plugins: $FOAM_PV_PLUGIN_LIBBIN" echo "Remaining plugins? : $FOAM_PV_PLUGIN_LIBBIN"
# rm -rf "$FOAM_PV_PLUGIN_LIBBIN" # rm -rf "$FOAM_PV_PLUGIN_LIBBIN"
fi fi
......
#!/bin/sh #!/bin/sh
cd "${0%/*}" || exit # Run from this directory cd "${0%/*}" || exit # Run from this directory
export WM_CONTINUE_ON_ERROR=true # Optional unit export WM_CONTINUE_ON_ERROR=true # Optional unit
. ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments
. ${WM_PROJECT_DIR:?}/wmake/scripts/paraviewFunctions # CMake, PV functions . ${WM_PROJECT_DIR:?}/wmake/scripts/paraviewFunctions # CMake, PV functions
. ${WM_PROJECT_DIR:?}/wmake/scripts/wmake.cmake-args
. ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Copyright (C) 2020 OpenCFD Ltd. # Copyright (C) 2020 OpenCFD Ltd.
# This file is part of OpenFOAM, distributed under GPL-3.0-or-later. # This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
# #
# Note # Note
# For paraview-5.7 (and later?) plugins are built into their own subdirs. # - use '-prefix=..' to define installation prefix (default: FOAM_LIBBIN)
#
# Note
# For paraview-5.7 (and later) plugins are built into their own subdirs.
# It also is not possible to suppress creation of static libraries in the # It also is not possible to suppress creation of static libraries in the
# process. # process.
# #
# Current solution (ugly) # Current solution (ugly)
# - install into a local "staged" location (within the build directory) # - install into a local "staged" location (within the build directory)
# - use rsync to relocate to the .so files to the plugin directory # - copy the .so files to the plugin directory
#
#------------------------------------------------------------------------------
# Default is openfoam (FOAM_LIBBIN)
: "${CMAKE_INSTALL_PREFIX:=${FOAM_LIBBIN%/*}}"
unset cmakeOpts
if [ -n "$CMAKE_INSTALL_PREFIX" ]
then
export CMAKE_INSTALL_PREFIX
cmakeOpts="-DCMAKE_INSTALL_PREFIX=$CMAKE_INSTALL_PREFIX"
fi
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
warnIncomplete() warnIncomplete()
...@@ -24,69 +41,82 @@ warnIncomplete() ...@@ -24,69 +41,82 @@ warnIncomplete()
echo echo
} }
if have_pvplugin_support have_pvplugin_support || {
exit 0 # Optional
}
wmakeLibPv common $cmakeOpts
wmakeLibPv blockMeshReader/library $cmakeOpts
wmakeLibPv foamReader/library $cmakeOpts
# Early exit for objects
if [ "$targetType" = objects ]
then then
( exit 0
wmakeLibPv common fi
wmakeLibPv blockMeshReader/library
wmakeLibPv foamReader/library
unset cmakeOpts cmakeType
unset installDir
if [ "$targetType" != objects ] # Still not entirely convincing
case "$PARAVIEW_API" in
(5.[0-6])
unset stagingDir # Not needed
;;
(*)
if stagingDir=$(findObjectDir '.')
then then
case "$PARAVIEW_API" in stagingDir="$stagingDir/install-prefix"
(5.[0-6])
cmakeType="cmakePv" # Need absolute directory for CMake
;; if [ "${stagingDir#/}" = "$stagingDir" ]
(*) then
if installDir=$(findObjectDir '.') stagingDir="$PWD/$stagingDir"
then fi
installDir="$installDir/install-prefix"
# Require an absolute directory for CMake
if [ "${installDir#/}" = "$installDir" ]
then
installDir="$PWD/$installDir"
fi
cmakeOpts="$cmakeOpts -DSTAGED_INSTALL_PREFIX=$installDir"
cmakeType="cmakePvInstall"
else
cmakeType="cmakePv" # cmakeType="cmakePvInstall"
fi
;;
esac
fi fi
;;
esac
rm -rf "$installDir" if [ -n "$stagingDir" ]
then
rm -rf -- "$stagingDir"
cmakeOpts="$cmakeOpts -DSTAGED_INSTALL_PREFIX=$stagingDir"
fi
if [ -n "$cmakeType" ]
then
"$cmakeType" "$PWD"/blockMeshReader "$cmakeOpts" || warnIncomplete "blockMesh"
"$cmakeType" "$PWD"/foamReader "$cmakeOpts" || warnIncomplete "OpenFOAM"
fi
if [ -d "$installDir" ] for plugin in blockMeshReader foamReader
then do
[ -d "$FOAM_PV_PLUGIN_LIBBIN" ] || mkdir -p "$FOAM_PV_PLUGIN_LIBBIN" cmakePvInstall "$PWD"/"$plugin" "$cmakeOpts" || \
warnIncomplete "$plugin"
# TODO: handle via targets via CMake done
for dir in "$installDir/lib" "$installDir/lib64"
do
if [ -d "$dir" ] pluginDir="$FOAM_PV_PLUGIN_LIBBIN"
then if [ -n "$CMAKE_INSTALL_PREFIX" ] && [ -n "$PARAVIEW_API" ]
echo then
for libName in $(find "$dir" -name '*.so') pluginDir="${CMAKE_INSTALL_PREFIX}/lib/paraview-${PARAVIEW_API}"
do fi
echo "Plugin: ${FOAM_PV_PLUGIN_LIBBIN##*/}/${libName##*/}"
rsync -a "$libName" "$FOAM_PV_PLUGIN_LIBBIN"
done # Copy from staging to plugins
fi if [ -d "$stagingDir" ] && [ -n "$pluginDir" ]
done then
fi [ -d "$pluginDir" ] || mkdir -p "$pluginDir"
)
echo
echo "Copy plugins: $pluginDir"
# TODO: handle via targets via CMake
for dir in "$stagingDir/lib" "$stagingDir/lib64"
do
if [ -d "$dir" ]
then
for libName in $(find "$dir" -name '*.so')
do
echo " ${pluginDir##*/}/${libName##*/}"
cp -p "$libName" "$pluginDir"
done
fi
done
fi fi
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
...@@ -12,6 +12,9 @@ else() ...@@ -12,6 +12,9 @@ else()
set(WM_OSTYPE "POSIX") set(WM_OSTYPE "POSIX")
endif() endif()
# Project libraries, as per wmake internals
set(FOAM_LIBBIN "$ENV{FOAM_LIBBIN}")
# Convenience name, as per wmake internals # Convenience name, as per wmake internals
set(LIB_SRC "$ENV{WM_PROJECT_DIR}/src") set(LIB_SRC "$ENV{WM_PROJECT_DIR}/src")
......
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# OpenFOAM blockMeshDict reader plugin for ParaView GUI (pre-5.7) # OpenFOAM blockMeshDict reader plugin for ParaView GUI (pre-5.7)
set(CMAKE_BUILD_TYPE Release) # Predefined values from CMakeLists-library.txt
link_directories(${OPENFOAM_LINK_DIRS})
include_directories(${OPENFOAM_INCLUDE_DIRS})
link_directories( # NOTE: do not use CMAKE_INSTALL_LIBDIR here
$ENV{FOAM_LIBBIN} # OpenFOAM uses lib (not lib64, or lib/multi-arch)
)
include_directories(
${LIB_SRC}/OpenFOAM/include
${LIB_SRC}/OpenFOAM/lnInclude
${LIB_SRC}/OSspecific/${WM_OSTYPE}/lnInclude
${LIB_SRC}/meshing/blockMesh/lnInclude
${PROJECT_SOURCE_DIR}/../common
${PROJECT_SOURCE_DIR}/library
${PROJECT_SOURCE_DIR}/plugin
${PROJECT_SOURCE_DIR}/plugin/reader
)
set(OPENFOAM_LIBNAMES
OpenFOAM
blockMesh
)
# Set output library destination to plugin directory
set(
LIBRARY_OUTPUT_PATH $ENV{FOAM_PV_PLUGIN_LIBBIN}
CACHE INTERNAL
"Single output directory for building all libraries."
)
qt5_wrap_cpp(MOC_SRCS plugin/pqFoamBlockMeshControls.h) qt5_wrap_cpp(MOC_SRCS plugin/pqFoamBlockMeshControls.h)
...@@ -39,7 +17,7 @@ add_paraview_property_group_widget(IFACES0 IFACES0_SRCS ...@@ -39,7 +17,7 @@ add_paraview_property_group_widget(IFACES0 IFACES0_SRCS
) )
add_paraview_plugin( add_paraview_plugin(
ParaFoamBlockReader "${foam_api}" ${CMAKE_PROJECT_NAME} "${foam_api}"
SERVER_MANAGER_XML SERVER_MANAGER_XML
plugin/ParaFoamBlockReader.xml plugin/ParaFoamBlockReader.xml
SERVER_MANAGER_SOURCES SERVER_MANAGER_SOURCES
...@@ -53,11 +31,29 @@ add_paraview_plugin( ...@@ -53,11 +31,29 @@ add_paraview_plugin(
) )
target_link_libraries( target_link_libraries(
ParaFoamBlockReader ${CMAKE_PROJECT_NAME}
LINK_PUBLIC LINK_PUBLIC
vtkPVFoamCommon${foamPvLibQualifier}
vtkPVblockReader${foamPvLibQualifier}
${OPENFOAM_LIBNAMES} ${OPENFOAM_LIBNAMES}
${SUPPORTING_LIBNAMES}
) )
set(PLUGIN_DIRNAME "paraview-${pv_api}")
# Compile directly into plugin directories
## # Set output library destination to plugin directory
## set(
## LIBRARY_OUTPUT_DIRECTORY $ENV{FOAM_PV_PLUGIN_LIBBIN}
## CACHE INTERNAL
## "Single output directory for building all libraries."
## )
##
## set_target_properties(
## ${CMAKE_PROJECT_NAME}
## PROPERTIES
## LIBRARY_OUTPUT_DIRECTORY "$ENV{FOAM_PV_PLUGIN_LIBBIN}"
## )
# Use install target
install(TARGETS ${CMAKE_PROJECT_NAME} DESTINATION "lib/${PLUGIN_DIRNAME}")
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# OpenFOAM blockMeshDict reader plugin for ParaView GUI (5.7+) # OpenFOAM blockMeshDict reader plugin for ParaView GUI (5.7+)
set(CMAKE_BUILD_TYPE Release)
cmake_minimum_required(VERSION 3.8) cmake_minimum_required(VERSION 3.8)
project(ParaFoamBlockReader)
find_package(ParaView REQUIRED) find_package(ParaView REQUIRED)
include(GNUInstallDirs) # Currently use a hack to stage the installation (2020-04-29)
if (STAGED_INSTALL_PREFIX) if (STAGED_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "${STAGED_INSTALL_PREFIX}") set(CMAKE_INSTALL_PREFIX "${STAGED_INSTALL_PREFIX}")
## message("use staged install: ${STAGED_INSTALL_PREFIX}") message("Staged prefix = ${CMAKE_INSTALL_PREFIX}")
else()
set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}")
endif() endif()
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}") #-----------------------------------------------------------------------------
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}") # Don't use CMAKE_INSTALL_LIBDIR here
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}") # OpenFOAM uses lib (not lib64, or lib/multi-arch)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/lib")
####
set(PARAVIEW_PLUGIN_ENABLE_ParaFoamBlockReader TRUE) set(PARAVIEW_PLUGIN_ENABLE_ParaFoamBlockReader TRUE)
...@@ -25,7 +25,9 @@ set("_paraview_plugin_default_${CMAKE_PROJECT_NAME}" ON) ...@@ -25,7 +25,9 @@ set("_paraview_plugin_default_${CMAKE_PROJECT_NAME}" ON)
paraview_plugin_scan( paraview_plugin_scan(
PLUGIN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/plugin/paraview.plugin" PLUGIN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/plugin/paraview.plugin"
PROVIDES_PLUGINS plugins PROVIDES_PLUGINS plugins
REQUIRES_MODULES required_modules) ENABLE_BY_DEFAULT ON
REQUIRES_MODULES required_modules
)
foreach(module IN LISTS required_modules) foreach(module IN LISTS required_modules)
if(NOT TARGET "${module}") if(NOT TARGET "${module}")
...@@ -35,12 +37,14 @@ foreach(module IN LISTS required_modules) ...@@ -35,12 +37,14 @@ foreach(module IN LISTS required_modules)
endforeach() endforeach()
# Install under <platform>/<arch>/lib, not lib64 # Install under <platform>/<arch>/lib, not lib64
# Don't want static libraries, include files...
paraview_plugin_build(