Salome HOME
Copyright update 2022
[modules/paravis.git] / src / Plugins / ParaGEOMCorba / CMakeLists.txt
1 # Copyright (C) 2010-2022  CEA/DEN, EDF R&D
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 cmake_minimum_required(VERSION 3.8)
21 project(ParaGEOMCorba)
22
23 include(GNUInstallDirs)
24 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}")
25 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
26 set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
27
28 find_package(SalomeGEOM)
29
30 include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/plugin/ParaGEOMCorbaModule )
31
32 set("_paraview_plugin_default_${CMAKE_PROJECT_NAME}" ON)
33 paraview_plugin_scan(
34   ENABLE_BY_DEFAULT YES
35   PLUGIN_FILES      "${CMAKE_CURRENT_SOURCE_DIR}/plugin/paraview.plugin"
36   PROVIDES_PLUGINS  plugins
37   REQUIRES_MODULES  required_modules)
38
39 foreach(module IN LISTS required_modules)
40   if(NOT TARGET "${module}")
41     message("Missing required module: ${module}")
42     return()
43   endif()
44 endforeach()
45
46 set(BUILD_SHARED_LIBS ON)
47 paraview_plugin_build(
48   RUNTIME_DESTINATION "${CMAKE_INSTALL_BINDIR}"
49   LIBRARY_DESTINATION "${CMAKE_INSTALL_LIBDIR}"
50   LIBRARY_SUBDIRECTORY "${PARAVIEW_PLUGIN_SUBDIR}"
51   PLUGINS ${plugins}
52   AUTOLOAD ${plugins})
53
54 #  PROJECT( ParaGEOMCorba )
55
56 #  CMAKE_MINIMUM_REQUIRED( VERSION 2.8.7 )
57 #  FIND_PACKAGE(ParaView REQUIRED)
58 #  INCLUDE( ${PARAVIEW_USE_FILE} )
59 #  SET( PARA_GEOM_CORBA_SRCS
60 #    ${ParaGEOMCorba_SOURCE_DIR}/vtkParaGEOMCorbaSource.cxx
61 #  )
62 #  ADD_PARAVIEW_PLUGIN( ParaGEOMCorbaPlugin "1.0"
63 #    SERVER_MANAGER_XML ParaGEOMCorbaServerManager.xml
64 #    SERVER_MANAGER_SOURCES ${PARA_GEOM_CORBA_SRCS} )
65     
66 #  INCLUDE_DIRECTORIES(
67 #     ${OMNIORB_INCLUDE_DIR} 
68 #     ${GEOM_ROOT_DIR}/include/salome
69 #     ${KERNEL_ROOT_DIR}/include/salome )
70 #     
71 #  ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
72 #    TARGET_LINK_LIBRARIES(ParaGEOMCorbaPlugin
73 #      ${OMNIORB_LIBRARIES}
74 #      ${KERNEL_SalomeIDLKernel}
75 #      ${KERNEL_SalomeLifeCycleCORBA}
76 #      ${KERNEL_SalomeNS}
77 #      ${GEOM_GEOMClient}
78 #      ${GEOM_SalomeIDLGEOM}
79 #      ${GEOM_OCC2VTK}
80 #  )
81     
82 #  INSTALL(TARGETS ParaGEOMCorbaPlugin DESTINATION lib/paraview)
83 #  INSTALL(FILES ParaGEOMCorbaServerManager.xml DESTINATION share)