]> SALOME platform Git repositories - plugins/gmshplugin.git/blob - src/GMSHPlugin/CMakeLists.txt
Salome HOME
42de82703ac96ef6f3430e0b7528c5f14f59e4ab
[plugins/gmshplugin.git] / src / GMSHPlugin / CMakeLists.txt
1 # Copyright (C) 2012-2015  ALNEOS
2 # Copyright (C) 2016-2023  EDF R&D
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # See http://www.alneos.com/ or email : contact@alneos.fr
19 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #
21
22 # --- options ---
23 # additional include directories
24 INCLUDE_DIRECTORIES(
25   ${KERNEL_INCLUDE_DIRS}
26   ${OpenCASCADE_INCLUDE_DIR}
27   ${GEOM_INCLUDE_DIRS}
28   ${SMESH_INCLUDE_DIRS}
29   ${MEDCOUPLING_INCLUDE_DIRS}
30   ${Boost_INCLUDE_DIRS}
31   ${OMNIORB_INCLUDE_DIR}
32   ${GMSH_INCLUDE_DIRS}
33   ${PROJECT_BINARY_DIR}/idl
34 )
35
36 # additional preprocessor / compiler flags
37 ADD_DEFINITIONS(  
38   ${OMNIORB_DEFINITIONS}
39   ${OpenCASCADE_DEFINITIONS}
40   ${BOOST_DEFINITIONS}
41 )
42
43 # libraries to link to
44 SET(_link_LIBRARIES
45   ${OpenCASCADE_FoundationClasses_LIBRARIES}
46   ${OpenCASCADE_ModelingData_LIBRARIES}
47   ${OpenCASCADE_ApplicationFramework_LIBRARIES}
48   ${OpenCASCADE_ModelingAlgorithms_LIBRARIES}
49   ${GMSH_LIBRARIES}
50   ${KERNEL_SALOMELocalTrace}
51   ${KERNEL_SALOMEBasics}
52   ${KERNEL_SalomeGenericObj}
53   ${KERNEL_SalomeNS}
54   ${KERNEL_OpUtil}
55   ${SMESH_SMDS}
56   ${SMESH_SMESHDS}
57   ${SMESH_SMESHimpl}
58   ${SMESH_StdMeshers}
59   ${SMESH_SMESHEngine}
60   ${SMESH_MeshDriverGMF}
61   SalomeIDLGMSHPLUGIN
62 )
63
64 # --- headers ---
65
66 # header files
67 SET(GMSHEngine_HEADERS
68   GMSHPlugin_GMSH_2D.hxx
69   GMSHPlugin_GMSH_2D_i.hxx
70   GMSHPlugin_GMSH_3D.hxx
71   GMSHPlugin_GMSH_3D_i.cxx
72   GMSHPlugin_GMSH.hxx
73   GMSHPlugin_GMSH_i.hxx
74   GMSHPlugin_Hypothesis.hxx
75   GMSHPlugin_Hypothesis_i.hxx
76   GMSHPlugin_Hypothesis_2D.hxx
77   GMSHPlugin_Hypothesis_2D_i.hxx
78   GMSHPlugin_Hypothesis_3D.hxx
79   GMSHPlugin_Hypothesis_3D_i.hxx
80   GMSHPlugin_Mesher.hxx
81   GMSHPlugin_Defs.hxx
82 )
83
84 # --- sources ---
85
86 # sources / static
87 SET(GMSHEngine_SOURCES
88   GMSHPlugin_GMSH_2D.cxx
89   GMSHPlugin_GMSH_2D_i.cxx
90   GMSHPlugin_GMSH_3D.cxx
91   GMSHPlugin_GMSH_3D_i.cxx
92   GMSHPlugin_GMSH.cxx
93   GMSHPlugin_GMSH_i.cxx
94   GMSHPlugin_Hypothesis.cxx
95   GMSHPlugin_Hypothesis_i.cxx
96   GMSHPlugin_Hypothesis_2D.cxx
97   GMSHPlugin_Hypothesis_2D_i.cxx
98   GMSHPlugin_Hypothesis_3D.cxx
99   GMSHPlugin_Hypothesis_3D_i.cxx
100   GMSHPlugin_Mesher.cxx
101   GMSHPlugin_i.cxx
102 )
103
104 # --- scripts ---
105
106 # scripts / static
107 SET(_bin_SCRIPTS
108   __init__.py
109   GMSHPluginBuilder.py
110 )
111
112 # --- rules ---
113
114 ADD_LIBRARY(GMSHEngine ${GMSHEngine_SOURCES})
115 TARGET_LINK_LIBRARIES(GMSHEngine ${_link_LIBRARIES} )
116 INSTALL(TARGETS GMSHEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
117
118 INSTALL(FILES ${GMSHEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
119
120 SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/GMSHPlugin)