Salome HOME
Copyright update 2021
[plugins/netgenplugin.git] / src / NETGENPlugin / CMakeLists.txt
1 # Copyright (C) 2012-2021  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   ${OpenCASCADE_INCLUDE_DIR}
27   ${NETGEN_INCLUDE_DIRS}
28   ${SMESH_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   ${NETGEN_DEFINITIONS}
40 )
41
42 # libraries to link to
43 SET(_link_LIBRARIES
44   ${NETGEN_LIBRARIES}
45   ${OpenCASCADE_FoundationClasses_LIBRARIES}
46   ${OpenCASCADE_ModelingData_LIBRARIES}
47   ${OpenCASCADE_ModelingAlgorithms_LIBRARIES}
48   ${OpenCASCADE_DataExchange_LIBRARIES}
49   ${OpenCASCADE_Visualization_LIBRARIES}
50   ${OpenCASCADE_ApplicationFramework_LIBRARIES}
51   ${GEOM_GEOMbasic}
52   ${SMESH_SMESHimpl}
53   ${SMESH_SMESHEngine}
54   ${SMESH_SMESHUtils}
55   ${SMESH_StdMeshersEngine}
56   ${SMESH_StdMeshers}
57   ${SMESH_SMESHDS}
58   ${SMESH_SMDS}
59   ${SMESH_SMESHControls}
60   ${KERNEL_SalomeGenericObj}
61   ${KERNEL_SalomeNS}
62   ${KERNEL_SALOMELocalTrace}
63   ${KERNEL_OpUtil}
64   SalomeIDLNETGENPLUGIN
65 )
66
67 # --- headers ---
68
69 # header files
70 SET(NETGENEngine_HEADERS
71   NETGENPlugin_NETGEN_3D.hxx 
72   NETGENPlugin_NETGEN_3D_i.hxx 
73   NETGENPlugin_NETGEN_2D.hxx 
74   NETGENPlugin_NETGEN_2D_i.hxx 
75   NETGENPlugin_NETGEN_2D3D.hxx 
76   NETGENPlugin_NETGEN_2D3D_i.hxx 
77   NETGENPlugin_NETGEN_2D_ONLY.hxx 
78   NETGENPlugin_NETGEN_2D_ONLY_i.hxx 
79   NETGENPlugin_Hypothesis.hxx 
80   NETGENPlugin_Hypothesis_i.hxx 
81   NETGENPlugin_Hypothesis_2D.hxx 
82   NETGENPlugin_Hypothesis_2D_i.hxx 
83   NETGENPlugin_Hypothesis_3D_i.hxx 
84   NETGENPlugin_Hypothesis_2D_ONLY_i.hxx 
85   NETGENPlugin_SimpleHypothesis_2D.hxx 
86   NETGENPlugin_SimpleHypothesis_3D.hxx 
87   NETGENPlugin_SimpleHypothesis_2D_i.hxx 
88   NETGENPlugin_SimpleHypothesis_3D_i.hxx 
89   NETGENPlugin_Mesher.hxx 
90   NETGENPlugin_Remesher_2D.hxx
91   NETGENPlugin_Defs.hxx
92 )
93
94 # --- sources ---
95
96 # sources / static
97 SET(NETGENEngine_SOURCES
98   NETGENPlugin_NETGEN_3D.cxx
99   NETGENPlugin_NETGEN_3D_i.cxx
100   NETGENPlugin_Mesher.cxx
101   NETGENPlugin_NETGEN_2D.cxx
102   NETGENPlugin_NETGEN_2D_i.cxx
103   NETGENPlugin_NETGEN_2D3D.cxx
104   NETGENPlugin_NETGEN_2D3D_i.cxx
105   NETGENPlugin_NETGEN_2D_ONLY.cxx
106   NETGENPlugin_NETGEN_2D_ONLY_i.cxx
107   NETGENPlugin_Hypothesis.cxx
108   NETGENPlugin_Hypothesis_i.cxx
109   NETGENPlugin_Hypothesis_2D.cxx
110   NETGENPlugin_Hypothesis_2D_i.cxx
111   NETGENPlugin_Hypothesis_3D_i.cxx
112   NETGENPlugin_Hypothesis_2D_ONLY_i.cxx
113   NETGENPlugin_SimpleHypothesis_2D.cxx
114   NETGENPlugin_SimpleHypothesis_3D.cxx
115   NETGENPlugin_SimpleHypothesis_2D_i.cxx
116   NETGENPlugin_SimpleHypothesis_3D_i.cxx
117   NETGENPlugin_Remesher_2D.cxx
118   NETGENPlugin_i.cxx
119 )
120
121 # --- scripts ---
122
123 # scripts / static
124 SET(_bin_SCRIPTS
125   __init__.py
126   NETGENPluginBuilder.py
127 )
128
129 # --- rules ---
130
131 ADD_LIBRARY(NETGENEngine ${NETGENEngine_SOURCES})
132 TARGET_LINK_LIBRARIES(NETGENEngine ${_link_LIBRARIES} )
133 INSTALL(TARGETS NETGENEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
134
135 INSTALL(FILES ${NETGENEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
136
137 SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/NETGENPlugin)