1 # Copyright (C) 2012-2022 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 # additional include directories
23 ${KERNEL_INCLUDE_DIRS}
26 ${OpenCASCADE_INCLUDE_DIR}
27 ${NETGEN_INCLUDE_DIRS}
29 ${MEDCOUPLING_INCLUDE_DIRS}
31 ${OMNIORB_INCLUDE_DIR}
32 ${PROJECT_BINARY_DIR}/idl
33 ${NETGEN_ZLIB_INCLUDE_DIRS}
36 # additional preprocessor / compiler flags
38 ${OMNIORB_DEFINITIONS}
39 ${OpenCASCADE_DEFINITIONS}
44 # libraries to link to
47 ${OpenCASCADE_FoundationClasses_LIBRARIES}
48 ${OpenCASCADE_ModelingData_LIBRARIES}
49 ${OpenCASCADE_ModelingAlgorithms_LIBRARIES}
50 ${OpenCASCADE_DataExchange_LIBRARIES}
51 ${OpenCASCADE_Visualization_LIBRARIES}
52 ${OpenCASCADE_ApplicationFramework_LIBRARIES}
57 ${SMESH_StdMeshersEngine}
61 ${SMESH_SMESHControls}
62 ${KERNEL_SalomeGenericObj}
64 ${KERNEL_SALOMELocalTrace}
74 SET(NETGENEngine_HEADERS
75 NETGENPlugin_NETGEN_3D.hxx
76 NETGENPlugin_NETGEN_3D_i.hxx
77 NETGENPlugin_NETGEN_2D.hxx
78 NETGENPlugin_NETGEN_2D_i.hxx
79 NETGENPlugin_NETGEN_2D3D.hxx
80 NETGENPlugin_NETGEN_2D3D_i.hxx
81 NETGENPlugin_NETGEN_2D_ONLY.hxx
82 NETGENPlugin_NETGEN_2D_ONLY_i.hxx
83 NETGENPlugin_Hypothesis.hxx
84 NETGENPlugin_Hypothesis_i.hxx
85 NETGENPlugin_Hypothesis_2D.hxx
86 NETGENPlugin_Hypothesis_2D_i.hxx
87 NETGENPlugin_Hypothesis_3D_i.hxx
88 NETGENPlugin_Hypothesis_2D_ONLY_i.hxx
89 NETGENPlugin_SimpleHypothesis_2D.hxx
90 NETGENPlugin_SimpleHypothesis_3D.hxx
91 NETGENPlugin_SimpleHypothesis_2D_i.hxx
92 NETGENPlugin_SimpleHypothesis_3D_i.hxx
93 NETGENPlugin_Mesher.hxx
94 NETGENPlugin_Remesher_2D.hxx
96 NETGENPlugin_DriverParam.hxx
97 NETGENPlugin_Runner.hxx
103 SET(NETGENEngine_SOURCES
104 NETGENPlugin_NETGEN_3D.cxx
105 NETGENPlugin_NETGEN_3D_i.cxx
106 NETGENPlugin_Mesher.cxx
107 NETGENPlugin_NETGEN_2D.cxx
108 NETGENPlugin_NETGEN_2D_i.cxx
109 NETGENPlugin_NETGEN_2D3D.cxx
110 NETGENPlugin_NETGEN_2D3D_i.cxx
111 NETGENPlugin_NETGEN_2D_ONLY.cxx
112 NETGENPlugin_NETGEN_2D_ONLY_i.cxx
113 NETGENPlugin_Hypothesis.cxx
114 NETGENPlugin_Hypothesis_i.cxx
115 NETGENPlugin_Hypothesis_2D.cxx
116 NETGENPlugin_Hypothesis_2D_i.cxx
117 NETGENPlugin_Hypothesis_3D_i.cxx
118 NETGENPlugin_Hypothesis_2D_ONLY_i.cxx
119 NETGENPlugin_SimpleHypothesis_2D.cxx
120 NETGENPlugin_SimpleHypothesis_3D.cxx
121 NETGENPlugin_SimpleHypothesis_2D_i.cxx
122 NETGENPlugin_SimpleHypothesis_3D_i.cxx
123 NETGENPlugin_Remesher_2D.cxx
125 NETGENPlugin_Runner.cxx
126 NETGENPlugin_DriverParam.cxx
129 SET(NetgenRunner_SOURCES
130 NETGENPlugin_Runner_main.cxx
138 NETGENPluginBuilder.py
143 ADD_LIBRARY(NETGENEngine ${NETGENEngine_SOURCES})
144 TARGET_LINK_LIBRARIES(NETGENEngine ${_link_LIBRARIES} )
145 INSTALL(TARGETS NETGENEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
147 ADD_EXECUTABLE(NETGENPlugin_Runner ${NetgenRunner_SOURCES})
148 TARGET_LINK_LIBRARIES(NETGENPlugin_Runner ${_link_LIBRARIES} NETGENEngine )
149 INSTALL(TARGETS NETGENPlugin_Runner EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
151 INSTALL(FILES ${NETGENEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
153 SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/NETGENPlugin)