Salome HOME
Synchronize adm files
[plugins/ghs3dprlplugin.git] / src / GHS3DPRLPlugin / CMakeLists.txt
1 # Copyright (C) 2012-2014  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, or (at your option) any later version.
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 # --- headers ---
64
65 # header files
66 SET(GHS3DPRLEngine_HEADERS
67   GHS3DPRLPlugin_Defs.hxx
68   GHS3DPRLPlugin_GHS3DPRL.hxx
69   GHS3DPRLPlugin_GHS3DPRL_i.hxx
70   GHS3DPRLPlugin_Hypothesis.hxx
71   GHS3DPRLPlugin_Hypothesis_i.hxx
72 )
73
74 # --- sources ---
75
76 # sources / static
77 SET(GHS3DPRLEngine_SOURCES
78   GHS3DPRLPlugin_Defs.hxx
79   GHS3DPRLPlugin_GHS3DPRL.hxx
80   GHS3DPRLPlugin_GHS3DPRL.cxx
81   GHS3DPRLPlugin_GHS3DPRL_i.hxx
82   GHS3DPRLPlugin_GHS3DPRL_i.cxx
83   GHS3DPRLPlugin_Hypothesis.hxx
84   GHS3DPRLPlugin_Hypothesis.cxx
85   GHS3DPRLPlugin_Hypothesis_i.hxx
86   GHS3DPRLPlugin_Hypothesis_i.cxx
87   GHS3DPRLPlugin_i.cxx
88 )
89
90 # --- scripts ---
91
92 # scripts / static
93 SET(_bin_SCRIPTS
94   __init__.py
95   GHS3DPRLPluginBuilder.py
96 )
97
98 # --- rules ---
99
100 ADD_LIBRARY(GHS3DPRLEngine ${GHS3DPRLEngine_SOURCES})
101 TARGET_LINK_LIBRARIES(GHS3DPRLEngine ${_link_LIBRARIES} )
102 INSTALL(TARGETS GHS3DPRLEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
103
104 INSTALL(FILES ${GHS3DPRLEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
105
106 SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/GHS3DPRLPlugin)