1 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 # + This file is part of enGrid. +
5 # + Copyright 2008-2014 enGits GmbH +
7 # + enGrid is free software: you can redistribute it and/or modify +
8 # + it under the terms of the GNU General Public License as published by +
9 # + the Free Software Foundation, either version 3 of the License, or +
10 # + (at your option) any later version. +
12 # + enGrid is distributed in the hope that it will be useful, +
13 # + but WITHOUT ANY WARRANTY; without even the implied warranty of +
14 # + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
15 # + GNU General Public License for more details. +
17 # + You should have received a copy of the GNU General Public License +
18 # + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
20 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTETLIBRARY")
28 boundarylayeroperation.h
32 cellneighbouriterator.h
35 checkerboardgraphiterator.h
37 checksurfaceintegrity.h
39 correctsurfaceorientation.h
40 createboundarylayershell.h
41 createcadtesselation.h
55 edgelengthsourcemanager.h
57 egvtkinteractorstyle.h
60 eliminatesmallbranches.h
73 globalnodegraphinterface.h
78 guicreateboundarylayer.h
80 guicreatesurfacemesh.h
82 guideletebadaspecttris.h
83 guidivideboundarylayer.h
84 guiedgelengthsourcebox.h
85 guiedgelengthsourcecone.h
86 guiedgelengthsourcepipe.h
87 guiedgelengthsourcesphere.h
88 guieditboundaryconditions.h
89 guiimproveaspectratio.h
95 guiselectboundarycodes.h
108 localnodegraphinterface.h
111 ../math/mathvector_methods.h
112 ../math/mathvector_operators.h
113 ../math/mathvector_structs.h
114 ../math/smallsquarematrix.h
117 meshqualityfaceorientation.h
120 multipagewidgetpage.h
121 multisolidasciistlreader.h
129 optimisenormalvector.h
131 physicalboundarycondition.h
138 reducedpolydatareader.h
139 reducesurfacetriangulation.h
141 ruleedgelengthsource.h
142 seedsimpleprismaticlayer.h
147 smoothandswapsurface.h
160 surfacemeshsmoother.h
161 surfacenodemovementcheck.h
168 triangularcadinterface.h
172 updatedesiredmeshdensity.h
178 vtkEgBoundaryCodesFilter.h
179 vtkEgEliminateShortEdges.h
180 vtkEgExtractVolumeCells.h
182 vtkEgNormalExtrusion.h
183 vtkEgPolyDataToUnstructuredGridFilter.h
192 guiconverttopolymesh.h
195 restricttoavailablevolumecells.h
199 guibooleangeometryoperation.ui
200 guicreateboundarylayer.ui
202 guicreatesurfacemesh.ui
203 guicreatevolumemesh.ui
204 guideletebadaspecttris.ui
205 guidivideboundarylayer.ui
206 guiedgelengthsourcebox.ui
207 guiedgelengthsourcecone.ui
208 guiedgelengthsourcepipe.ui
209 guiedgelengthsourcesphere.ui
210 guieditboundaryconditions.ui
211 guiimproveaspectratio.ui
215 guinormalextrusion.ui
217 guiselectboundarycodes.ui
218 guisetboundarycode.ui
223 guiconverttopolymesh.ui
224 guicreatehexibmesh.ui
225 guiypluscalculator.ui
228 QT4_WRAP_CPP(libengrid_HEADERS_MOC ${libengrid_HEADERS})
229 QT4_WRAP_UI(libengrid_FORMS_HEADERS ${libengrid_FORMS})
230 QT4_ADD_RESOURCES(libengrid_RESOURCES_RCC engrid.qrc)
232 SET(libengrid_SOURCES
234 ${linengrid_HEADERS_MOC}
237 boundarycondition.cpp
238 boundarylayeroperation.cpp
241 celllayeriterator.cpp
242 cellneighbouriterator.cpp
243 cgaltricadinterface.cpp
246 checksurfaceintegrity.cpp
247 correctsurfaceorientation.cpp
248 createboundarylayershell.cpp
249 createcadtesselation.cpp
255 deletepickedpoint.cpp
261 edgelengthsourcemanager.cpp
262 egvtkinteractorstyle.cpp
265 eliminatesmallbranches.cpp
280 guicreateboundarylayer.cpp
282 guicreatesurfacemesh.cpp
283 guicreatevolumemesh.cpp
284 guideletebadaspecttris.cpp
285 guidivideboundarylayer.cpp
286 guiedgelengthsourcebox.cpp
287 guiedgelengthsourcecone.cpp
288 guiedgelengthsourcepipe.cpp
289 guiedgelengthsourcesphere.cpp
290 guieditboundaryconditions.cpp
291 guiimproveaspectratio.cpp
295 guinormalextrusion.cpp
297 guiselectboundarycodes.cpp
298 guisetboundarycode.cpp
300 guisettingsviewer.cpp
303 guivolumedelegate.cpp
304 guiypluscalculator.cpp
313 meshqualityfaceorientation.cpp
315 multipagewidgetpage.cpp
316 multisolidasciistlreader.cpp
318 nodelayeriterator.cpp
324 optimisenormalvector.cpp
326 physicalboundarycondition.cpp
333 reducedpolydatareader.cpp
334 reducesurfacetriangulation.cpp
336 ruleedgelengthsource.cpp
337 seedsimpleprismaticlayer.cpp
338 seligairfoilreader.cpp
342 smoothandswapsurface.cpp
343 smoothingutilities.cpp
351 surfacemeshsmoother.cpp
352 surfacenodemovementcheck.cpp
359 triangularcadinterface.cpp
361 updatedesiredmeshdensity.cpp
365 vertexmeshdensity.cpp
367 vtkEgBoundaryCodesFilter.cxx
368 vtkEgEliminateShortEdges.cxx
369 vtkEgExtractVolumeCells.cxx
371 vtkEgNormalExtrusion.cxx
372 vtkEgPolyDataToUnstructuredGridFilter.cxx
378 computemeshdensity.cpp
379 converttopolymesh.cpp
380 guicreatehexshell.cpp
381 guiconverttopolymesh.cpp
383 guicreatehexibmesh.cpp
384 restricttoavailablevolumecells.cpp
388 ADD_LIBRARY(libengrid SHARED ${libengrid_SOURCES} ${libengrid_HEADERS_MOC} ${libengrid_FORMS_HEADERS} ${libengrid_RESOURCES_RCC})
390 if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
391 SET_TARGET_PROPERTIES(libengrid PROPERTIES MACOSX_RPATH 1)
394 SET_TARGET_PROPERTIES(libengrid PROPERTIES VERSION ${ENGRID_VERSION})
395 SET_TARGET_PROPERTIES(libengrid PROPERTIES COMPILE_FLAGS "-Wno-deprecated")
397 if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
398 target_link_libraries(libengrid tet)
399 target_link_libraries(libengrid ${QT_LIBRARIES})
400 target_link_libraries(libengrid ${VTK_LIBRARIES})
401 target_link_libraries(libengrid Qt4::QtCore)
402 target_link_libraries(libengrid Qt4::QtGui)
403 target_link_libraries(libengrid Qt4::QtXml)
406 target_link_libraries(libengrid ${VTK_LIBRARIES})
407 INSTALL(TARGETS libengrid LIBRARY DESTINATION lib)
408 INSTALL(FILES ${libengrid_HEADERS} DESTINATION include/engrid)