Salome HOME
Win32 compilation.
[plugins/hexoticplugin.git] / src / HexoticPlugin / 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   ${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(NETGENEngine_HEADERS
67   NETGENPlugin_NETGEN_3D.hxx 
68   NETGENPlugin_NETGEN_3D_i.hxx 
69   NETGENPlugin_NETGEN_2D.hxx 
70   NETGENPlugin_NETGEN_2D_i.hxx 
71   NETGENPlugin_NETGEN_2D3D.hxx 
72   NETGENPlugin_NETGEN_2D3D_i.hxx 
73   NETGENPlugin_NETGEN_2D_ONLY.hxx 
74   NETGENPlugin_NETGEN_2D_ONLY_i.hxx 
75   NETGENPlugin_Hypothesis.hxx 
76   NETGENPlugin_Hypothesis_i.hxx 
77   NETGENPlugin_Hypothesis_2D.hxx 
78   NETGENPlugin_Hypothesis_2D_i.hxx 
79   NETGENPlugin_Hypothesis_3D_i.hxx 
80   NETGENPlugin_Hypothesis_2D_ONLY_i.hxx 
81   NETGENPlugin_SimpleHypothesis_2D.hxx 
82   NETGENPlugin_SimpleHypothesis_3D.hxx 
83   NETGENPlugin_SimpleHypothesis_2D_i.hxx 
84   NETGENPlugin_SimpleHypothesis_3D_i.hxx 
85   NETGENPlugin_Mesher.hxx 
86   NETGENPlugin_Defs.hxx
87 )
88
89 # --- sources ---
90
91 # sources / static
92 SET(HexoticEngine_SOURCES
93   HexoticPlugin_Hexotic.hxx
94   HexoticPlugin_Hexotic.cxx
95   HexoticPlugin_Hexotic_i.hxx
96   HexoticPlugin_Hexotic_i.cxx
97   HexoticPlugin_Hypothesis.hxx
98   HexoticPlugin_Hypothesis.cxx
99   HexoticPlugin_Hypothesis_i.hxx
100   HexoticPlugin_Hypothesis_i.cxx
101   HexoticPlugin_i.cxx
102   HexoticPlugin_Defs.hxx
103 )
104
105 # --- scripts ---
106
107 # scripts / static
108 SET(_python_SCRIPTS
109   __init__.py
110   HexoticPLUGINBuilder.py
111 )
112
113 # --- rules ---
114
115 ADD_LIBRARY(HexoticEngine ${HexoticEngine_SOURCES})
116 TARGET_LINK_LIBRARIES(HexoticEngine ${_link_LIBRARIES} )
117 INSTALL(TARGETS HexoticEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
118
119 SALOME_INSTALL_SCRIPTS("${_python_SCRIPTS}" ${SALOME_INSTALL_PYTHON}/salome/HexoticPLUGIN)