Salome HOME
Porting GHS3DPLUGIN SALOME module build procedure to the CMake build system: initial...
[plugins/ghs3dplugin.git] / src / GHS3DPlugin / CMakeLists.txt
1 # Copyright (C) 2012-2013  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.
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   ${CAS_INCLUDE_DIRS}
25   ${GEOM_INCLUDE_DIRS}
26   ${SMESH_INCLUDE_DIRS}
27   ${VTK_INCLUDE_DIRS}
28   ${Boost_INCLUDE_DIRS}
29   ${OMNIORB_INCLUDE_DIR}
30   ${PROJECT_BINARY_DIR}/idl
31 )
32
33 # additional preprocessor / compiler flags
34 ADD_DEFINITIONS(  
35   ${OMNIORB_DEFINITIONS}
36   ${CAS_DEFINITIONS}
37   ${BOOST_DEFINITIONS}
38 )
39
40 # libraries to link to
41 SET(_link_LIBRARIES
42   ${CAS_TKBRep}
43   ${CAS_TKG2d}
44   ${CAS_TKG3d}
45   ${CAS_TKTopAlgo}
46   ${CAS_TKGeomBase}
47   ${CAS_TKGeomAlgo}
48   ${CAS_TKCDF}
49   ${SMESH_SMESHimpl}
50   ${SMESH_SMESHEngine}
51   ${SMESH_SMESHDS}
52   ${SMESH_SMDS}
53   ${SMESH_StdMeshers}
54   ${SMESH_MeshDriverGMF}
55   ${KERNEL_SalomeGenericObj}
56   ${KERNEL_SALOMELocalTrace}
57   ${KERNEL_SALOMEBasics}
58   ${KERNEL_SalomeNS}
59   ${KERNEL_OpUtil}
60   SalomeIDLGHS3DPLUGIN
61 )
62
63 # --- headers ---
64
65 # header files
66 SET(GHS3DEngine_HEADERS
67   GHS3DPlugin_Defs.hxx
68   GHS3DPlugin_GHS3D.hxx
69   GHS3DPlugin_GHS3D_i.hxx
70   GHS3DPlugin_Hypothesis.hxx
71   GHS3DPlugin_Hypothesis_i.hxx
72 )
73
74 # --- sources ---
75
76 # sources / static
77 SET(GHS3DEngine_SOURCES
78   GHS3DPlugin_GHS3D.cxx
79   GHS3DPlugin_GHS3D_i.cxx
80   GHS3DPlugin_i.cxx
81   GHS3DPlugin_Hypothesis.cxx
82   GHS3DPlugin_Hypothesis_i.cxx
83 )
84
85 # --- scripts ---
86
87 # scripts / static
88 SET(_bin_SCRIPTS
89   __init__.py
90   GHS3DPluginBuilder.py
91 )
92
93 # --- rules ---
94
95 ADD_LIBRARY(GHS3DEngine ${GHS3DEngine_SOURCES})
96 TARGET_LINK_LIBRARIES(GHS3DEngine ${_link_LIBRARIES} )
97 INSTALL(TARGETS GHS3DEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
98
99 INSTALL(FILES ${GHS3DEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
100
101 SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/GHS3DPlugin)