Salome HOME
af3dad723e01145735a71e1c524eb2ad1adfd797
[plugins/hexoticplugin.git] / src / HexoticPlugin / CMakeLists.txt
1 # Copyright (C) 2012-2021  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 # --- options ---
21 # additional include directories
22 INCLUDE_DIRECTORIES(
23   ${SMESH_INCLUDE_DIRS}
24   ${OMNIORB_INCLUDE_DIR}
25   ${Boost_INCLUDE_DIRS}
26   ${OpenCASCADE_INCLUDE_DIR}
27   ${MESHGEMS_INCLUDE_DIRS}
28   ${KERNEL_INCLUDE_DIRS}
29   ${GUI_INCLUDE_DIRS}
30   ${GEOM_INCLUDE_DIRS}
31   ${BLSURFPLUGIN_INCLUDE_DIRS}
32   ${PROJECT_BINARY_DIR}/idl
33 )
34
35 # additional preprocessor / compiler flags
36 ADD_DEFINITIONS(  
37   ${OMNIORB_DEFINITIONS}
38   ${OpenCASCADE_DEFINITIONS}
39   ${BOOST_DEFINITIONS}
40 )
41
42 # libraries to link to
43 SET(_link_LIBRARIES
44   TKernel
45   TKMath
46   TKG3d
47   TKTopAlgo
48   TKBRep
49   ${CAS_SALOMELocalTrace}
50   ${MESHGEMS_HEXA_LIBRARY}
51   ${SMESH_SMESHimpl}
52   ${SMESH_SMESHEngine}
53   ${SMESH_StdMeshersEngine}
54   ${SMESH_MeshDriverGMF}
55   ${SMESH_SMDS}
56   ${SMESH_SMESHDS}
57   ${SMESH_SalomeIDLSMESH}
58   ${SMESH_SMESHUtils}
59   ${KERNEL_SalomeGenericObj}
60   ${KERNEL_SALOMELocalTrace}  
61   SalomeIDLHexoticPLUGIN
62 )
63
64 # --- headers ---
65
66 # header files
67 SET(HexoticEngine_HEADERS
68   HexoticPlugin_Defs.hxx
69   HexoticPlugin_Hexotic.hxx
70   HexoticPlugin_Hexotic_i.hxx
71   HexoticPlugin_Hypothesis.hxx
72   HexoticPlugin_Hypothesis_i.hxx
73   MG_Hexotic_API.hxx
74 )
75
76 # --- sources ---
77
78 # sources / static
79 SET(HexoticEngine_SOURCES
80   HexoticPlugin_Hexotic.hxx
81   HexoticPlugin_Hexotic.cxx
82   HexoticPlugin_Hexotic_i.hxx
83   HexoticPlugin_Hexotic_i.cxx
84   HexoticPlugin_Hypothesis.hxx
85   HexoticPlugin_Hypothesis.cxx
86   HexoticPlugin_Hypothesis_i.hxx
87   HexoticPlugin_Hypothesis_i.cxx
88   HexoticPlugin_i.cxx
89   HexoticPlugin_Defs.hxx
90   MG_Hexotic_API.cxx
91 )
92
93 # --- scripts ---
94
95 # scripts / static
96 SET(_python_SCRIPTS
97   __init__.py
98   HexoticPLUGINBuilder.py
99 )
100
101 # --- rules ---
102
103 ADD_LIBRARY(HexoticEngine ${HexoticEngine_SOURCES})
104 TARGET_LINK_LIBRARIES(HexoticEngine ${_link_LIBRARIES} )
105 INSTALL(TARGETS HexoticEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
106
107 INSTALL(FILES ${HexoticEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
108
109 SALOME_INSTALL_SCRIPTS("${_python_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/HexoticPLUGIN)