]> SALOME platform Git repositories - modules/hexablock.git/blob - src/HEXABLOCK/CMakeLists.txt
Salome HOME
602cd3d4642f75fae5f372bc838fb3d4d320c161
[modules/hexablock.git] / src / HEXABLOCK / 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   ${PYTHON_INCLUDE_DIRS}
25   ${CAS_INCLUDE_DIRS}
26   ${VTK_INCLUDE_DIRS}
27   ${GEOM_INCLUDE_DIRS}
28   ${Boost_INCLUDE_DIRS}
29   ${OMNIORB_INCLUDE_DIR}
30   ${PROJECT_BINARY_DIR}/idl
31 )
32
33 # additional preprocessor / compiler flags
34 ADD_DEFINITIONS(
35   ${KERNEL_DEFINITIONS}
36   ${CAS_DEFINITIONS}
37   ${BOOST_DEFINITIONS}
38 )
39
40 # libraries to link to
41 SET(_link_LIBRARIES
42   ${CAS_TKBRep}
43   ${CAS_TKPrim}
44   ${CAS_TKG3d}
45   ${CAS_TKG2d}
46   ${CAS_TKTopAlgo}
47   ${CAS_TKGeomBase}
48   ${CAS_TKGeomAlgo}
49   ${CAS_TKBool}
50   ${CAS_TKBO}
51   ${KERNEL_SALOMELocalTrace}
52   ${KERNEL_SALOMEBasics}
53   ${PYTHON_LIBRARIES}
54 )
55
56 # --- headers ---
57
58 # header files
59 SET(HEXABLOCKEngine_HEADERS
60   HexGroup.hxx
61   HexEdge.hxx
62   HexGlobale.hxx
63   HexPropagation.hxx
64   HexVector.hxx
65   HexXmlWriter.hxx
66   hexa_base.hxx
67   HexDiagnostics.hxx
68   HexElements.hxx
69   HexHexa.hxx
70   HexMatrix.hxx
71   HexQuad.hxx
72   HexVertex.hxx
73   HexLaw.hxx
74   HexCloner.hxx
75   HexDocument.hxx
76   HexEltBase.hxx
77   Hex.hxx
78   HexShape.hxx
79   HexOldShape.hxx
80   HexNewShape.hxx
81   HexSubShape.hxx
82   HexVertexShape.hxx
83   HexEdgeShape.hxx
84   HexFaceShape.hxx
85   HexBiCylinderShape.hxx
86   HexAssoEdge.hxx
87   HexXmlTree.hxx
88   HexBiCylinder.hxx
89   HexDumpStudy.hxx
90   HexAnaQuads.hxx
91   HexKas_functions.hxx
92   HexWitness.hxx
93   HexCramer.hxx
94   Hex_defines.hxx 
95 )
96
97 # --- sources ---
98
99 # sources / static
100 SET(HEXABLOCKEngine_SOURCES
101   hexa_utils.cxx
102   HexEltBase.cxx
103   HexGlobale.cxx
104   HexCloner.cxx
105   HexVertex.cxx
106   HexEdge.cxx
107   HexQuad.cxx
108   HexHexa.cxx
109   HexHexa_disco.cxx
110   HexVector.cxx
111   HexElements.cxx
112   HexElements_bis.cxx
113   HexElements_ter.cxx
114   HexElements_piq.cxx
115   HexElements_asso.cxx
116   HexElements_grid.cxx
117   HexGroup.cxx
118   HexLaw.cxx
119   HexShape.cxx
120   HexNewShape.cxx
121   HexSubShape.cxx
122   HexDocument_trans.cxx
123   HexDocument_tools.cxx
124   HexVertexShape.cxx
125   HexEdgeShape.cxx
126   HexFaceShape.cxx
127   HexBiCylinderShape.cxx
128   HexAssoEdge.cxx
129   HexDocument_Xml.cxx
130   HexDocument.cxx
131   HexXmlTree.cxx
132   HexXmlWriter.cxx
133   HexDumpStudy.cxx
134   HexBiCylinder.cxx
135   Hex.cxx
136   HexDocument_asso.cxx
137   HexDocument_quads.cxx
138   HexDocument_skin.cxx
139   HexDocument_v6.cxx
140   HexElements_v6.cxx
141   HexElements_check.cxx
142   HexWitness.cxx
143   Hex_salome.cxx
144   test_unit.hxx
145   test_hexa6.cxx
146   HexKas_functions.cxx   
147 )
148
149 # --- rules ---
150
151 ADD_LIBRARY(HEXABLOCKEngine ${HEXABLOCKEngine_SOURCES})
152 TARGET_LINK_LIBRARIES(HEXABLOCKEngine ${_link_LIBRARIES} )
153 INSTALL(TARGETS HEXABLOCKEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
154
155 INSTALL(FILES ${HEXABLOCKEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})