1 # Copyright (C) 2021 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 cmake_minimum_required(VERSION 3.8)
21 project(ElectromagnetismStreamTraceur)
23 IF(PARAVISADDONS_COMMON_BUILD_TESTS)
24 ADD_SUBDIRECTORY(Test)
25 ENDIF(PARAVISADDONS_COMMON_BUILD_TESTS)
27 set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
29 set("_paraview_plugin_default_${CMAKE_PROJECT_NAME}" ON)
32 PLUGIN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/plugin/paraview.plugin"
33 PROVIDES_PLUGINS plugins
34 REQUIRES_MODULES required_modules)
36 foreach(module IN LISTS required_modules)
37 if(NOT TARGET "${module}")
38 message("Missing required module: ${module}")
43 set(BUILD_SHARED_LIBS ON)
44 paraview_plugin_build(
45 RUNTIME_DESTINATION "${CMAKE_INSTALL_BINDIR}"
46 LIBRARY_DESTINATION "${CMAKE_INSTALL_LIBDIR}"
47 LIBRARY_SUBDIRECTORY "${PARAVIEW_PLUGIN_SUBDIR}"