]> SALOME platform Git repositories - modules/hexablock.git/blob - src/HEXABLOCK/CMakeLists.txt
Salome HOME
8340a91f0bc4aca44ba45f7e11187e06bf1f5936
[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   HexCylinder.hxx
62   HexEdge.hxx
63   HexGlobale.hxx
64   HexPropagation.hxx
65   HexVector.hxx
66   HexXmlWriter.hxx
67   hexa_base.hxx
68   HexDiagnostics.hxx
69   HexElements.hxx
70   HexHexa.hxx
71   HexMatrix.hxx
72   HexQuad.hxx
73   HexVertex.hxx
74   HexLaw.hxx
75   HexCloner.hxx
76   HexDocument.hxx
77   HexEltBase.hxx
78   Hex.hxx
79   HexPipe.hxx
80   HexShape.hxx
81   HexOldShape.hxx
82   HexNewShape.hxx
83   HexSubShape.hxx
84   HexVertexShape.hxx
85   HexEdgeShape.hxx
86   HexFaceShape.hxx
87   HexBiCylinderShape.hxx
88   HexAssoEdge.hxx
89   HexXmlTree.hxx
90   HexCrossElements.hxx
91   HexBiCylinder.hxx
92   HexDumpStudy.hxx
93   HexAnaQuads.hxx
94   HexKas_functions.hxx
95   HexWitness.hxx
96   HexCramer.hxx
97 )
98
99 # --- sources ---
100
101 # sources / static
102 SET(HEXABLOCKEngine_SOURCES
103   hexa_utils.cxx
104   HexEltBase.cxx
105   HexGlobale.cxx
106   HexCloner.cxx
107   HexVertex.cxx
108   HexEdge.cxx
109   HexQuad.cxx
110   HexHexa.cxx
111   HexHexa_disco.cxx
112   HexVector.cxx
113   HexElements.cxx
114   HexElements_bis.cxx
115   HexElements_ter.cxx
116   HexElements_piq.cxx
117   HexElements_asso.cxx
118   HexElements_grid.cxx
119   HexCylinder.cxx
120   HexGroup.cxx
121   HexPipe.cxx
122   HexLaw.cxx
123   HexShape.cxx
124   HexNewShape.cxx
125   HexSubShape.cxx
126   HexDocument_trans.cxx
127   HexDocument_tools.cxx
128   HexVertexShape.cxx
129   HexEdgeShape.cxx
130   HexFaceShape.cxx
131   HexBiCylinderShape.cxx
132   HexAssoEdge.cxx
133   HexDocument_Xml.cxx
134   HexDocument.cxx
135   HexXmlTree.cxx
136   HexXmlWriter.cxx
137   HexDumpStudy.cxx
138   HexCrossElements.cxx
139   HexCrossElements_build.cxx
140   HexBiCylinder.cxx
141   Hex.cxx
142   HexDocument_asso.cxx
143   HexDocument_quads.cxx
144   HexDocument_del.cxx
145   HexDocument_skin.cxx
146   HexDocument_v6.cxx
147   HexElements_v6.cxx
148   HexElements_check.cxx
149   HexElements_del.cxx
150   HexWitness.cxx
151   Hex_salome.cxx
152   test_unit.hxx
153   test_hexa6.cxx
154   HexKas_functions.cxx 
155 )
156
157 # --- rules ---
158
159 ADD_LIBRARY(HEXABLOCKEngine ${HEXABLOCKEngine_SOURCES})
160 TARGET_LINK_LIBRARIES(HEXABLOCKEngine ${_link_LIBRARIES} )
161 INSTALL(TARGETS HEXABLOCKEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
162
163 INSTALL(FILES ${HEXABLOCKEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})