]> SALOME platform Git repositories - plugins/gmshplugin.git/blob - src/GMSHPlugin/CMakeLists.txt
Salome HOME
Python 3 porting & Multi-study removing
[plugins/gmshplugin.git] / src / GMSHPlugin / CMakeLists.txt
1 # Copyright (C) 2012-2015  ALNEOS
2 # Copyright (C) 2016  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.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20
21 # --- options ---
22 # additional include directories
23 INCLUDE_DIRECTORIES(
24   ${KERNEL_INCLUDE_DIRS}
25   ${CAS_INCLUDE_DIRS}
26   ${GEOM_INCLUDE_DIRS}
27   ${SMESH_INCLUDE_DIRS}
28   ${VTK_INCLUDE_DIRS}
29   ${Boost_INCLUDE_DIRS}
30   ${OMNIORB_INCLUDE_DIR}
31   ${GMSH_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_TKBRep}
47   ${CAS_TKGeomBase}
48   ${CAS_TKG2d}
49   ${CAS_TKG3d}
50   ${CAS_TKTopAlgo}
51   ${CAS_TKGeomAlgo}
52   ${CAS_TKCDF}
53   ${GMSH_LIBRARIES}
54   ${KERNEL_SALOMELocalTrace}
55   ${KERNEL_SALOMEBasics}
56   ${KERNEL_SalomeGenericObj}
57   ${KERNEL_SalomeNS}
58   ${KERNEL_OpUtil}
59   ${SMESH_SMDS}
60   ${SMESH_SMESHDS}
61   ${SMESH_SMESHimpl}
62   ${SMESH_SMESHEngine}
63   ${SMESH_MeshDriverGMF}
64   SalomeIDLGMSHPLUGIN
65 )
66
67 # --- headers ---
68
69 # header files
70 SET(GMSHEngine_HEADERS
71   GMSHPlugin_GMSH_2D.hxx
72   GMSHPlugin_GMSH_2D_i.hxx
73   GMSHPlugin_GMSH.hxx
74   GMSHPlugin_GMSH_i.hxx
75   GMSHPlugin_Hypothesis.hxx
76   GMSHPlugin_Hypothesis_i.hxx
77   GMSHPlugin_Hypothesis_2D.hxx
78   GMSHPlugin_Hypothesis_2D_i.hxx
79   GMSHPlugin_Mesher.hxx
80   GMSHPlugin_Defs.hxx
81 )
82
83 # --- sources ---
84
85 # sources / static
86 SET(GMSHEngine_SOURCES
87   GMSHPlugin_GMSH_2D.cxx
88   GMSHPlugin_GMSH_2D_i.cxx
89   GMSHPlugin_GMSH.cxx
90   GMSHPlugin_GMSH_i.cxx
91   GMSHPlugin_Hypothesis.cxx
92   GMSHPlugin_Hypothesis_i.cxx
93   GMSHPlugin_Hypothesis_2D.cxx
94   GMSHPlugin_Hypothesis_2D_i.cxx
95   GMSHPlugin_Mesher.cxx
96   GMSHPlugin_i.cxx
97 )
98
99 # --- scripts ---
100
101 # scripts / static
102 SET(_bin_SCRIPTS
103   __init__.py
104   GMSHPluginBuilder.py
105 )
106
107 # --- rules ---
108
109 ADD_LIBRARY(GMSHEngine ${GMSHEngine_SOURCES})
110 TARGET_LINK_LIBRARIES(GMSHEngine ${_link_LIBRARIES} )
111 INSTALL(TARGETS GMSHEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
112
113 INSTALL(FILES ${GMSHEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
114
115 SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/GMSHPlugin)