Salome HOME
Merge branch 'V7_main'
[plugins/hexoticplugin.git] / src / HexoticPlugin / CMakeLists.txt
1 # Copyright (C) 2012-2014  CEA/DEN, EDF R&D
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   ${SMESH_INCLUDE_DIRS}
24   ${OMNIORB_INCLUDE_DIR}
25   ${Boost_INCLUDE_DIRS}
26   ${CAS_INCLUDE_DIRS}
27   ${VTK_INCLUDE_DIRS}
28   ${KERNEL_INCLUDE_DIRS}
29   ${GUI_INCLUDE_DIRS}
30   ${GEOM_INCLUDE_DIRS}
31   ${BLSURFPLUGIN_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_TKG3d}
47   ${CAS_TKTopAlgo}
48   ${CAS_TKBRep}
49   ${CAS_SALOMELocalTrace}
50   ${SMESH_SMESHimpl}
51   ${SMESH_SMESHEngine}
52   ${SMESH_StdMeshersEngine}
53   ${SMESH_MeshDriverGMF}
54   ${SMESH_SMDS}
55   ${SMESH_SMESHDS}
56   ${SMESH_SalomeIDLSMESH}
57   ${SMESH_SMESHUtils}
58   ${KERNEL_SalomeGenericObj}
59   ${KERNEL_SALOMELocalTrace}  
60   SalomeIDLHexoticPLUGIN
61 )
62
63 # --- headers ---
64
65 # header files
66 SET(HexoticEngine_HEADERS
67   HexoticPlugin_Defs.hxx
68   HexoticPlugin_Hexotic.hxx
69   HexoticPlugin_Hexotic_i.hxx
70   HexoticPlugin_Hypothesis.hxx
71   HexoticPlugin_Hypothesis_i.hxx
72 )
73
74 # --- sources ---
75
76 # sources / static
77 SET(HexoticEngine_SOURCES
78   HexoticPlugin_Hexotic.hxx
79   HexoticPlugin_Hexotic.cxx
80   HexoticPlugin_Hexotic_i.hxx
81   HexoticPlugin_Hexotic_i.cxx
82   HexoticPlugin_Hypothesis.hxx
83   HexoticPlugin_Hypothesis.cxx
84   HexoticPlugin_Hypothesis_i.hxx
85   HexoticPlugin_Hypothesis_i.cxx
86   HexoticPlugin_i.cxx
87   HexoticPlugin_Defs.hxx
88 )
89
90 # --- scripts ---
91
92 # scripts / static
93 SET(_python_SCRIPTS
94   __init__.py
95   HexoticPLUGINBuilder.py
96 )
97
98 # --- rules ---
99
100 ADD_LIBRARY(HexoticEngine ${HexoticEngine_SOURCES})
101 TARGET_LINK_LIBRARIES(HexoticEngine ${_link_LIBRARIES} )
102 INSTALL(TARGETS HexoticEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
103
104 INSTALL(FILES ${HexoticEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
105
106 SALOME_INSTALL_SCRIPTS("${_python_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/HexoticPLUGIN)