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
34 cellneighbouriterator.h
37 checkerboardgraphiterator.h
39 checksurfaceintegrity.h
41 correctsurfaceorientation.h
42 createboundarylayershell.h
43 createcadtesselation.h
56 edgelengthsourcemanager.h
58 egvtkinteractorstyle.h
61 eliminatesmallbranches.h
74 globalnodegraphinterface.h
79 guibrlcadimportdialogue.h
80 guicreateboundarylayer.h
82 guicreatesurfacemesh.h
84 guideletebadaspecttris.h
85 guidivideboundarylayer.h
86 guiedgelengthsourcebox.h
87 guiedgelengthsourcecone.h
88 guiedgelengthsourcepipe.h
89 guiedgelengthsourcesphere.h
90 guieditboundaryconditions.h
91 guiimproveaspectratio.h
97 guiselectboundarycodes.h
109 localnodegraphinterface.h
112 ../math/mathvector_methods.h
113 ../math/mathvector_operators.h
114 ../math/mathvector_structs.h
115 ../math/smallsquarematrix.h
118 meshqualityfaceorientation.h
121 multipagewidgetpage.h
122 multisolidasciistlreader.h
130 optimisenormalvector.h
131 physicalboundarycondition.h
137 reducedpolydatareader.h
138 reducesurfacetriangulation.h
140 ruleedgelengthsource.h
141 seedsimpleprismaticlayer.h
146 smoothandswapsurface.h
159 surfacemeshsmoother.h
160 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 guibrlcadimportdialogue.ui
201 guicreateboundarylayer.ui
203 guicreatesurfacemesh.ui
204 guicreatevolumemesh.ui
205 guideletebadaspecttris.ui
206 guidivideboundarylayer.ui
207 guiedgelengthsourcebox.ui
208 guiedgelengthsourcecone.ui
209 guiedgelengthsourcepipe.ui
210 guiedgelengthsourcesphere.ui
211 guieditboundaryconditions.ui
212 guiimproveaspectratio.ui
216 guinormalextrusion.ui
218 guiselectboundarycodes.ui
219 guisetboundarycode.ui
224 guiconverttopolymesh.ui
225 guicreatehexibmesh.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
243 celllayeriterator.cpp
244 cellneighbouriterator.cpp
245 cgaltricadinterface.cpp
248 checksurfaceintegrity.cpp
249 correctsurfaceorientation.cpp
250 createboundarylayershell.cpp
251 createcadtesselation.cpp
256 deletepickedpoint.cpp
262 edgelengthsourcemanager.cpp
263 egvtkinteractorstyle.cpp
266 eliminatesmallbranches.cpp
281 guibrlcadimportdialogue.cpp
282 guicreateboundarylayer.cpp
284 guicreatesurfacemesh.cpp
285 guicreatevolumemesh.cpp
286 guideletebadaspecttris.cpp
287 guidivideboundarylayer.cpp
288 guiedgelengthsourcebox.cpp
289 guiedgelengthsourcecone.cpp
290 guiedgelengthsourcepipe.cpp
291 guiedgelengthsourcesphere.cpp
292 guieditboundaryconditions.cpp
293 guiimproveaspectratio.cpp
297 guinormalextrusion.cpp
299 guiselectboundarycodes.cpp
300 guisetboundarycode.cpp
302 guisettingsviewer.cpp
305 guivolumedelegate.cpp
314 meshqualityfaceorientation.cpp
316 multipagewidgetpage.cpp
317 multisolidasciistlreader.cpp
319 nodelayeriterator.cpp
325 optimisenormalvector.cpp
326 physicalboundarycondition.cpp
332 reducedpolydatareader.cpp
333 reducesurfacetriangulation.cpp
335 ruleedgelengthsource.cpp
336 seedsimpleprismaticlayer.cpp
337 seligairfoilreader.cpp
341 smoothandswapsurface.cpp
342 smoothingutilities.cpp
350 surfacemeshsmoother.cpp
351 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)