Salome HOME
Synchronize adm files
[plugins/netgenplugin.git] / src / NETGENPlugin / CMakeLists.txt
1 # Copyright (C) 2012-2014  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, 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   ${GUI_INCLUDE_DIRS}
25   ${GEOM_INCLUDE_DIRS}
26   ${CAS_INCLUDE_DIRS}
27   ${VTK_INCLUDE_DIRS}
28   ${NETGEN_INCLUDE_DIRS}
29   ${SMESH_INCLUDE_DIRS}
30   ${Boost_INCLUDE_DIRS}
31   ${OMNIORB_INCLUDE_DIR}
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   ${NETGEN_LIBRARIES}
45   ${CAS_TKernel}
46   ${CAS_TKBRep}
47   ${CAS_TKShHealing}
48   ${CAS_TKSTEP}
49   ${CAS_TKXSBase}
50   ${CAS_TKIGES}
51   ${CAS_TKMesh}
52   ${CAS_TKSTL}
53   ${CAS_TKG3d}
54   ${CAS_TKTopAlgo}
55   ${CAS_TKG2d}
56   ${CAS_TKBool}
57   ${CAS_TKGeomAlgo}
58   ${CAS_TKOffset}
59   ${CAS_TKGeomBase}
60   ${CAS_TKBO}
61   ${CAS_TKMath}
62   ${CAS_TKFillet}
63   ${CAS_TKMeshVS}
64   ${CAS_TKPrim}
65   ${CAS_TKSTEPBase}
66   ${CAS_TKSTEPAttr}
67   ${CAS_TKSTEP209}
68   ${CAS_TKXDESTEP}
69   ${CAS_TKXDEIGES}
70   ${CAS_TKXCAF}
71   ${CAS_TKLCAF}
72   ${CAS_FWOSPlugin}
73   ${GEOM_GEOMbasic}
74   ${SMESH_SMESHimpl}
75   ${SMESH_SMESHEngine}
76   ${SMESH_SMESHUtils}
77   ${SMESH_StdMeshersEngine}
78   ${SMESH_StdMeshers}
79   ${SMESH_SMESHDS}
80   ${SMESH_SMDS}
81   ${SMESH_SMESHControls}
82   ${KERNEL_SalomeGenericObj}
83   ${KERNEL_SalomeNS}
84   ${KERNEL_SALOMELocalTrace}
85   ${KERNEL_OpUtil}
86   SalomeIDLNETGENPLUGIN
87 )
88
89 # --- headers ---
90
91 # header files
92 SET(NETGENEngine_HEADERS
93   NETGENPlugin_NETGEN_3D.hxx 
94   NETGENPlugin_NETGEN_3D_i.hxx 
95   NETGENPlugin_NETGEN_2D.hxx 
96   NETGENPlugin_NETGEN_2D_i.hxx 
97   NETGENPlugin_NETGEN_2D3D.hxx 
98   NETGENPlugin_NETGEN_2D3D_i.hxx 
99   NETGENPlugin_NETGEN_2D_ONLY.hxx 
100   NETGENPlugin_NETGEN_2D_ONLY_i.hxx 
101   NETGENPlugin_Hypothesis.hxx 
102   NETGENPlugin_Hypothesis_i.hxx 
103   NETGENPlugin_Hypothesis_2D.hxx 
104   NETGENPlugin_Hypothesis_2D_i.hxx 
105   NETGENPlugin_Hypothesis_3D_i.hxx 
106   NETGENPlugin_Hypothesis_2D_ONLY_i.hxx 
107   NETGENPlugin_SimpleHypothesis_2D.hxx 
108   NETGENPlugin_SimpleHypothesis_3D.hxx 
109   NETGENPlugin_SimpleHypothesis_2D_i.hxx 
110   NETGENPlugin_SimpleHypothesis_3D_i.hxx 
111   NETGENPlugin_Mesher.hxx 
112   NETGENPlugin_Defs.hxx
113 )
114
115 # --- sources ---
116
117 # sources / static
118 SET(NETGENEngine_SOURCES
119   NETGENPlugin_NETGEN_3D.cxx
120   NETGENPlugin_NETGEN_3D_i.cxx
121   NETGENPlugin_Mesher.cxx
122   NETGENPlugin_NETGEN_2D.cxx
123   NETGENPlugin_NETGEN_2D_i.cxx
124   NETGENPlugin_NETGEN_2D3D.cxx
125   NETGENPlugin_NETGEN_2D3D_i.cxx
126   NETGENPlugin_NETGEN_2D_ONLY.cxx
127   NETGENPlugin_NETGEN_2D_ONLY_i.cxx
128   NETGENPlugin_Hypothesis.cxx
129   NETGENPlugin_Hypothesis_i.cxx
130   NETGENPlugin_Hypothesis_2D.cxx
131   NETGENPlugin_Hypothesis_2D_i.cxx
132   NETGENPlugin_Hypothesis_3D_i.cxx
133   NETGENPlugin_Hypothesis_2D_ONLY_i.cxx
134   NETGENPlugin_SimpleHypothesis_2D.cxx
135   NETGENPlugin_SimpleHypothesis_3D.cxx
136   NETGENPlugin_SimpleHypothesis_2D_i.cxx
137   NETGENPlugin_SimpleHypothesis_3D_i.cxx
138   NETGENPlugin_i.cxx
139 )
140
141 # --- scripts ---
142
143 # scripts / static
144 SET(_bin_SCRIPTS
145   __init__.py
146   NETGENPluginBuilder.py
147 )
148
149 # --- rules ---
150
151 ADD_LIBRARY(NETGENEngine ${NETGENEngine_SOURCES})
152 TARGET_LINK_LIBRARIES(NETGENEngine ${_link_LIBRARIES} )
153 INSTALL(TARGETS NETGENEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
154
155 INSTALL(FILES ${NETGENEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
156
157 SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/NETGENPlugin)