1 # Copyright (C) 2010-2024 CEA, EDF
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
19 cmake_minimum_required(VERSION 3.8)
20 project(ParaSMESHCorba)
22 include(GNUInstallDirs)
23 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}")
24 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
25 set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
27 find_package(SalomeSMESH)
29 include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/plugin/ParaSMESHCorbaModule )
31 set("_paraview_plugin_default_${CMAKE_PROJECT_NAME}" ON)
34 PLUGIN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/plugin/paraview.plugin"
35 PROVIDES_PLUGINS plugins
36 REQUIRES_MODULES required_modules)
38 foreach(module IN LISTS required_modules)
39 if(NOT TARGET "${module}")
40 message("Missing required module: ${module}")
45 set(BUILD_SHARED_LIBS ON)
46 paraview_plugin_build(
47 RUNTIME_DESTINATION "${CMAKE_INSTALL_BINDIR}"
48 LIBRARY_DESTINATION "${CMAKE_INSTALL_LIBDIR}"
49 LIBRARY_SUBDIRECTORY "${PARAVIEW_PLUGIN_SUBDIR}"
53 # PROJECT(ParaSMESHCorba)
54 # CMAKE_MINIMUM_REQUIRED( VERSION 2.8.7 )
56 # FIND_PACKAGE(ParaView REQUIRED)
57 # INCLUDE(${PARAVIEW_USE_FILE})
59 # SET(PARA_SMESH_CORBA_SRC
60 # ${ParaSMESHCorba_SOURCE_DIR}/vtkParaSMESHCorbaSource.cxx
63 # ADD_PARAVIEW_PLUGIN( ParaSMESHCorbaPlugin "1.0"
64 # SERVER_MANAGER_XML ParaSMESHCorbaServerManager.xml
65 # SERVER_MANAGER_SOURCES ${PARA_SMESH_CORBA_SRC} )
67 # INCLUDE_DIRECTORIES(
68 # ${OMNIORB_INCLUDE_DIR}
69 # ${SMESH_ROOT_DIR}/include/salome
70 # ${GEOM_ROOT_DIR}/include/salome
71 # ${KERNEL_ROOT_DIR}/include/salome )
73 # ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
74 # TARGET_LINK_LIBRARIES(ParaSMESHCorbaPlugin
75 # ${OMNIORB_LIBRARIES}
76 # ${KERNEL_SalomeIDLKernel}
77 # ${SMESH_SalomeIDLSMESH}
78 # ${SMESH_SMESHClient}
79 # ${GEOM_SalomeIDLGEOM}
82 # INSTALL(TARGETS ParaSMESHCorbaPlugin DESTINATION lib/paraview)
83 # INSTALL(FILES ParaSMESHCorbaServerManager.xml DESTINATION share)