Salome HOME
Revert "Synchronize adm files"
[modules/hexablock.git] / src / HEXABLOCK / CMakeLists.txt
1 # Copyright (C) 2012-2014  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   ${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   HexQpattern.hxx
73   HexVertex.hxx
74   HexLaw.hxx
75   HexCloner.hxx
76   HexDocument.hxx
77   HexEltBase.hxx
78   Hex.hxx
79   HexShape.hxx
80   HexOldShape.hxx
81   HexNewShape.hxx
82   HexSubShape.hxx
83   HexVertexShape.hxx
84   HexEdgeShape.hxx
85   HexFaceShape.hxx
86   HexBiCylinderShape.hxx
87   HexAssoEdge.hxx
88   HexXmlTree.hxx
89   HexBiCylinder.hxx
90   HexDumpStudy.hxx
91   HexAnaQuads.hxx
92   HexKas_functions.hxx
93   HexWitness.hxx
94   HexCramer.hxx
95   Hex_defines.hxx 
96 )
97
98 # --- sources ---
99
100 # sources / static
101 SET(HEXABLOCKEngine_SOURCES
102   hexa_utils.cxx
103   HexEltBase.cxx
104   HexGlobale.cxx
105   HexCloner.cxx
106   HexVertex.cxx
107   HexEdge.cxx
108   HexQuad.cxx
109   HexQpattern.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   HexGroup.cxx
120   HexLaw.cxx
121   HexShape.cxx
122   HexNewShape.cxx
123   HexSubShape.cxx
124   HexDocument_trans.cxx
125   HexDocument_tools.cxx
126   HexVertexShape.cxx
127   HexEdgeShape.cxx
128   HexFaceShape.cxx
129   HexBiCylinderShape.cxx
130   HexAssoEdge.cxx
131   HexDocument_Xml.cxx
132   HexDocument.cxx
133   HexXmlTree.cxx
134   HexXmlWriter.cxx
135   HexDumpStudy.cxx
136   HexBiCylinder.cxx
137   Hex.cxx
138   HexDocument_asso.cxx
139   HexDocument_quads.cxx
140   HexDocument_skin.cxx
141   HexDocument_v6.cxx
142   HexElements_v6.cxx
143   HexElements_check.cxx
144   HexWitness.cxx
145   Hex_salome.cxx
146   test_unit.hxx
147   test_hexa6.cxx
148   HexKas_functions.cxx   
149 )
150
151 # --- rules ---
152
153 ADD_LIBRARY(HEXABLOCKEngine ${HEXABLOCKEngine_SOURCES})
154 TARGET_LINK_LIBRARIES(HEXABLOCKEngine ${_link_LIBRARIES} )
155 INSTALL(TARGETS HEXABLOCKEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
156
157 INSTALL(FILES ${HEXABLOCKEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})