Salome HOME
38e1ea402351e1626e349cce96327a22888d5e55
[plugins/hexoticplugin.git] / src / HexoticPlugin / CMakeLists.txt
1 # Copyright (C) 2012-2016  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   ${MESHGEMS_INCLUDE_DIRS}
29   ${KERNEL_INCLUDE_DIRS}
30   ${GUI_INCLUDE_DIRS}
31   ${GEOM_INCLUDE_DIRS}
32   ${BLSURFPLUGIN_INCLUDE_DIRS}
33   ${PROJECT_BINARY_DIR}/idl
34 )
35
36 # additional preprocessor / compiler flags
37 ADD_DEFINITIONS(  
38   ${OMNIORB_DEFINITIONS}
39   ${CAS_DEFINITIONS}
40   ${BOOST_DEFINITIONS}
41 )
42
43 # libraries to link to
44 SET(_link_LIBRARIES
45   ${CAS_TKernel}
46   ${CAS_TKMath}
47   ${CAS_TKG3d}
48   ${CAS_TKTopAlgo}
49   ${CAS_TKBRep}
50   ${CAS_SALOMELocalTrace}
51   ${MESHGEMS_HEXA_LIBRARY}
52   ${SMESH_SMESHimpl}
53   ${SMESH_SMESHEngine}
54   ${SMESH_StdMeshersEngine}
55   ${SMESH_MeshDriverGMF}
56   ${SMESH_SMDS}
57   ${SMESH_SMESHDS}
58   ${SMESH_SalomeIDLSMESH}
59   ${SMESH_SMESHUtils}
60   ${KERNEL_SalomeGenericObj}
61   ${KERNEL_SALOMELocalTrace}  
62   SalomeIDLHexoticPLUGIN
63 )
64
65 # --- headers ---
66
67 # header files
68 SET(HexoticEngine_HEADERS
69   HexoticPlugin_Defs.hxx
70   HexoticPlugin_Hexotic.hxx
71   HexoticPlugin_Hexotic_i.hxx
72   HexoticPlugin_Hypothesis.hxx
73   HexoticPlugin_Hypothesis_i.hxx
74   MG_Hexotic_API.hxx
75 )
76
77 # --- sources ---
78
79 # sources / static
80 SET(HexoticEngine_SOURCES
81   HexoticPlugin_Hexotic.hxx
82   HexoticPlugin_Hexotic.cxx
83   HexoticPlugin_Hexotic_i.hxx
84   HexoticPlugin_Hexotic_i.cxx
85   HexoticPlugin_Hypothesis.hxx
86   HexoticPlugin_Hypothesis.cxx
87   HexoticPlugin_Hypothesis_i.hxx
88   HexoticPlugin_Hypothesis_i.cxx
89   HexoticPlugin_i.cxx
90   HexoticPlugin_Defs.hxx
91   MG_Hexotic_API.cxx
92 )
93
94 # --- scripts ---
95
96 # scripts / static
97 SET(_python_SCRIPTS
98   __init__.py
99   HexoticPLUGINBuilder.py
100 )
101
102 # --- rules ---
103
104 ADD_LIBRARY(HexoticEngine ${HexoticEngine_SOURCES})
105 TARGET_LINK_LIBRARIES(HexoticEngine ${_link_LIBRARIES} )
106 INSTALL(TARGETS HexoticEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
107
108 INSTALL(FILES ${HexoticEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
109
110 SALOME_INSTALL_SCRIPTS("${_python_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/HexoticPLUGIN)