Salome HOME
Updated copyright comment
[plugins/hexablockplugin.git] / src / HEXABLOCKPlugin / CMakeLists.txt
1 # Copyright (C) 2012-2024  CEA, EDF
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 # --- options ---
21 # additional include directories
22 INCLUDE_DIRECTORIES(
23   ${KERNEL_INCLUDE_DIRS}
24   ${OpenCASCADE_INCLUDE_DIR}
25   ${GEOM_INCLUDE_DIRS}
26   ${HEXABLOCK_INCLUDE_DIRS}
27   ${SMESH_INCLUDE_DIRS}
28   ${MEDCOUPLING_INCLUDE_DIRS}
29   ${Boost_INCLUDE_DIRS}
30   ${OMNIORB_INCLUDE_DIR}
31   ${PROJECT_BINARY_DIR}/idl
32 )
33
34 # additional preprocessor / compiler flags
35 ADD_DEFINITIONS(  
36   ${OMNIORB_DEFINITIONS}
37   ${OpenCASCADE_DEFINITIONS}
38   ${BOOST_DEFINITIONS}
39 )
40
41 # libraries to link to
42 SET(_link_LIBRARIES
43   TKBRep
44   TKG2d
45   TKG3d
46   TKTopAlgo
47   TKGeomBase
48   TKGeomAlgo
49   ${HEXABLOCK_HEXABLOCKEngine}
50   ${SMESH_SMESHimpl}
51   ${SMESH_SMESHEngine}
52   ${SMESH_SMESHDS}
53   ${SMESH_SMDS}
54   ${KERNEL_SalomeGenericObj}
55   ${KERNEL_SALOMELocalTrace}
56   ${KERNEL_SALOMEBasics}
57   SalomeIDLHEXABLOCKPLUGIN
58 )
59
60 # --- headers ---
61
62 # header files
63 SET(HexaBlockPluginEngine_HEADERS
64   HEXABLOCKPlugin_Defs.hxx
65   HEXABLOCKPlugin_HEXABLOCK.hxx
66   HEXABLOCKPlugin_HEXABLOCK_i.hxx
67   HEXABLOCKPlugin_Hypothesis.hxx
68   HEXABLOCKPlugin_Hypothesis_i.hxx
69   HEXABLOCKPlugin_mesh.hxx
70   HEXABLOCKPlugin_FromSkin_3D.hxx
71 )
72
73 # --- sources ---
74
75 # sources / static
76 SET(HexaBlockPluginEngine_SOURCES
77   HEXABLOCKPlugin_HEXABLOCK.cxx
78   HEXABLOCKPlugin_HEXABLOCK_i.cxx
79   HEXABLOCKPlugin_i.cxx
80   HEXABLOCKPlugin_Hypothesis.cxx
81   HEXABLOCKPlugin_Hypothesis_i.cxx
82   HEXABLOCKPlugin_mesh.cxx
83   HEXABLOCKPlugin_FromSkin_3D.cxx
84 )
85
86 # --- rules ---
87
88 ADD_LIBRARY(HexaBlockPluginEngine ${HexaBlockPluginEngine_SOURCES})
89 TARGET_LINK_LIBRARIES(HexaBlockPluginEngine ${_link_LIBRARIES} )
90 INSTALL(TARGETS HexaBlockPluginEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
91
92 INSTALL(FILES ${HexaBlockPluginEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})