]> SALOME platform Git repositories - modules/hexablock.git/blob - src/HEXABLOCK/CMakeLists.txt
Salome HOME
Move Hex_defines.hxx to the list of the headers.
[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   Hex_defines.hxx 
98 )
99
100 # --- sources ---
101
102 # sources / static
103 SET(HEXABLOCKEngine_SOURCES
104   hexa_utils.cxx
105   HexEltBase.cxx
106   HexGlobale.cxx
107   HexCloner.cxx
108   HexVertex.cxx
109   HexEdge.cxx
110   HexQuad.cxx
111   HexHexa.cxx
112   HexHexa_disco.cxx
113   HexVector.cxx
114   HexElements.cxx
115   HexElements_bis.cxx
116   HexElements_ter.cxx
117   HexElements_piq.cxx
118   HexElements_asso.cxx
119   HexElements_grid.cxx
120   HexCylinder.cxx
121   HexGroup.cxx
122   HexPipe.cxx
123   HexLaw.cxx
124   HexShape.cxx
125   HexNewShape.cxx
126   HexSubShape.cxx
127   HexDocument_trans.cxx
128   HexDocument_tools.cxx
129   HexVertexShape.cxx
130   HexEdgeShape.cxx
131   HexFaceShape.cxx
132   HexBiCylinderShape.cxx
133   HexAssoEdge.cxx
134   HexDocument_Xml.cxx
135   HexDocument.cxx
136   HexXmlTree.cxx
137   HexXmlWriter.cxx
138   HexDumpStudy.cxx
139   HexCrossElements.cxx
140   HexCrossElements_build.cxx
141   HexBiCylinder.cxx
142   Hex.cxx
143   HexDocument_asso.cxx
144   HexDocument_quads.cxx
145   HexDocument_del.cxx
146   HexDocument_skin.cxx
147   HexDocument_v6.cxx
148   HexElements_v6.cxx
149   HexElements_check.cxx
150   HexElements_del.cxx
151   HexWitness.cxx
152   Hex_salome.cxx
153   test_unit.hxx
154   test_hexa6.cxx
155   HexKas_functions.cxx   
156 )
157
158 # --- rules ---
159
160 ADD_LIBRARY(HEXABLOCKEngine ${HEXABLOCKEngine_SOURCES})
161 TARGET_LINK_LIBRARIES(HEXABLOCKEngine ${_link_LIBRARIES} )
162 INSTALL(TARGETS HEXABLOCKEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
163
164 INSTALL(FILES ${HEXABLOCKEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})