]> SALOME platform Git repositories - plugins/hexoticplugin.git/blob - src/HexoticPlugin/CMakeLists.txt
Salome HOME
021ad53b7a922fdc4e1432519c721dbc9db538f3
[plugins/hexoticplugin.git] / src / HexoticPlugin / CMakeLists.txt
1 # Copyright (C) 2012-2013  CEA/DEN, EDF R&D, OPEN CASCADE
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.
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   ${CAS_INCLUDE_DIRS}
27   ${VTK_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   ${CAS_DEFINITIONS}
39   ${BOOST_DEFINITIONS}
40 )
41
42 # libraries to link to
43 SET(_link_LIBRARIES
44   ${CAS_TKernel}
45   ${CAS_TKMath}
46   ${CAS_TKG3d}
47   ${CAS_TKTopAlgo}
48   ${CAS_TKBRep}
49   ${CAS_SALOMELocalTrace}
50   ${SMESH_SMESHimpl}
51   ${SMESH_SMESHEngine}
52   ${SMESH_StdMeshersEngine}
53   ${SMESH_SMDS}
54   ${SMESH_SMESHDS}
55   ${SMESH_SalomeIDLSMESH}
56   ${SMESH_SMESHUtils}
57   ${KERNEL_SalomeGenericObj}
58   ${KERNEL_SALOMELocalTrace}
59   SalomeIDLHexoticPLUGIN
60 )
61
62 # --- headers ---
63
64 # header files
65 SET(NETGENEngine_HEADERS
66   NETGENPlugin_NETGEN_3D.hxx 
67   NETGENPlugin_NETGEN_3D_i.hxx 
68   NETGENPlugin_NETGEN_2D.hxx 
69   NETGENPlugin_NETGEN_2D_i.hxx 
70   NETGENPlugin_NETGEN_2D3D.hxx 
71   NETGENPlugin_NETGEN_2D3D_i.hxx 
72   NETGENPlugin_NETGEN_2D_ONLY.hxx 
73   NETGENPlugin_NETGEN_2D_ONLY_i.hxx 
74   NETGENPlugin_Hypothesis.hxx 
75   NETGENPlugin_Hypothesis_i.hxx 
76   NETGENPlugin_Hypothesis_2D.hxx 
77   NETGENPlugin_Hypothesis_2D_i.hxx 
78   NETGENPlugin_Hypothesis_3D_i.hxx 
79   NETGENPlugin_Hypothesis_2D_ONLY_i.hxx 
80   NETGENPlugin_SimpleHypothesis_2D.hxx 
81   NETGENPlugin_SimpleHypothesis_3D.hxx 
82   NETGENPlugin_SimpleHypothesis_2D_i.hxx 
83   NETGENPlugin_SimpleHypothesis_3D_i.hxx 
84   NETGENPlugin_Mesher.hxx 
85   NETGENPlugin_Defs.hxx
86 )
87
88 # --- sources ---
89
90 # sources / static
91 SET(HexoticEngine_SOURCES
92   HexoticPlugin_Hexotic.hxx
93   HexoticPlugin_Hexotic.cxx
94   HexoticPlugin_Hexotic_i.hxx
95   HexoticPlugin_Hexotic_i.cxx
96   HexoticPlugin_Hypothesis.hxx
97   HexoticPlugin_Hypothesis.cxx
98   HexoticPlugin_Hypothesis_i.hxx
99   HexoticPlugin_Hypothesis_i.cxx
100   HexoticPlugin_i.cxx
101   HexoticPlugin_Defs.hxx
102 )
103
104 # --- scripts ---
105
106 # scripts / static
107 SET(_python_SCRIPTS
108   __init__.py
109   HexoticPLUGINBuilder.py
110 )
111
112 # --- rules ---
113
114 ADD_LIBRARY(HexoticEngine ${HexoticEngine_SOURCES})
115 TARGET_LINK_LIBRARIES(HexoticEngine ${_link_LIBRARIES} )
116 INSTALL(TARGETS HexoticEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
117
118 SALOME_INSTALL_SCRIPTS("${_python_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/HexoticPLUGIN)