Salome HOME
b923ff27cb0e6d0d2d6bff5478cf6ed5cf2fd6e3
[plugins/ghs3dprlplugin.git] / src / GHS3DPRLPlugin / 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   ${GEOM_INCLUDE_DIRS}
25   ${CAS_INCLUDE_DIRS}
26   ${VTK_INCLUDE_DIRS}
27   ${SMESH_INCLUDE_DIRS}
28   ${OMNIORB_INCLUDE_DIR}
29   ${Boost_INCLUDE_DIRS}
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   SalomeIDLGHS3DPRLPLUGIN
61 )
62
63 # --- sources ---
64
65 # sources / static
66 SET(GHS3DPRLEngine_SOURCES
67   GHS3DPRLPlugin_Defs.hxx
68   GHS3DPRLPlugin_GHS3DPRL.hxx
69   GHS3DPRLPlugin_GHS3DPRL.cxx
70   GHS3DPRLPlugin_GHS3DPRL_i.hxx
71   GHS3DPRLPlugin_GHS3DPRL_i.cxx
72   GHS3DPRLPlugin_Hypothesis.hxx
73   GHS3DPRLPlugin_Hypothesis.cxx
74   GHS3DPRLPlugin_Hypothesis_i.hxx
75   GHS3DPRLPlugin_Hypothesis_i.cxx
76   GHS3DPRLPlugin_i.cxx
77 )
78
79 # --- scripts ---
80
81 # scripts / static
82 SET(_bin_SCRIPTS
83   __init__.py
84   GHS3DPRLPluginBuilder.py
85 )
86
87 # --- rules ---
88
89 ADD_LIBRARY(GHS3DPRLEngine ${GHS3DPRLEngine_SOURCES})
90 TARGET_LINK_LIBRARIES(GHS3DPRLEngine ${_link_LIBRARIES} )
91 INSTALL(TARGETS GHS3DPRLEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
92
93 SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/GHS3DPRLPlugin)