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 qt_wrap_cpp(libengrid_HEADERS_MOC ${libengrid_HEADERS})
233 qt_wrap_ui(libengrid_FORMS_HEADERS ${libengrid_FORMS})
234 qt_add_resources(libengrid_RESOURCES_RCC engrid.qrc)
236 SET(libengrid_SOURCES
238 ${linengrid_HEADERS_MOC}
241 boundarycondition.cpp
242 boundarylayeroperation.cpp
245 celllayeriterator.cpp
246 cellneighbouriterator.cpp
247 cgaltricadinterface.cpp
250 checksurfaceintegrity.cpp
251 correctsurfaceorientation.cpp
252 createboundarylayershell.cpp
253 createcadtesselation.cpp
259 deletepickedpoint.cpp
265 edgelengthsourcemanager.cpp
266 egvtkinteractorstyle.cpp
269 eliminatesmallbranches.cpp
284 guicreateboundarylayer.cpp
286 guicreatesurfacemesh.cpp
287 guicreatevolumemesh.cpp
288 guideletebadaspecttris.cpp
289 guidivideboundarylayer.cpp
290 guiedgelengthsourcebox.cpp
291 guiedgelengthsourcecone.cpp
292 guiedgelengthsourcepipe.cpp
293 guiedgelengthsourcesphere.cpp
294 guieditboundaryconditions.cpp
295 guiimproveaspectratio.cpp
299 guinormalextrusion.cpp
301 guiselectboundarycodes.cpp
302 guisetboundarycode.cpp
304 guisettingsviewer.cpp
307 guivolumedelegate.cpp
308 guiypluscalculator.cpp
317 meshqualityfaceorientation.cpp
319 multipagewidgetpage.cpp
320 multisolidasciistlreader.cpp
322 nodelayeriterator.cpp
328 optimisenormalvector.cpp
330 physicalboundarycondition.cpp
337 reducedpolydatareader.cpp
338 reducesurfacetriangulation.cpp
340 ruleedgelengthsource.cpp
341 seedsimpleprismaticlayer.cpp
342 seligairfoilreader.cpp
346 smoothandswapsurface.cpp
347 smoothingutilities.cpp
355 surfacemeshsmoother.cpp
356 surfacenodemovementcheck.cpp
363 triangularcadinterface.cpp
365 updatedesiredmeshdensity.cpp
369 vertexmeshdensity.cpp
371 vtkEgBoundaryCodesFilter.cxx
372 vtkEgEliminateShortEdges.cxx
373 vtkEgExtractVolumeCells.cxx
375 vtkEgNormalExtrusion.cxx
376 vtkEgPolyDataToUnstructuredGridFilter.cxx
382 computemeshdensity.cpp
383 converttopolymesh.cpp
384 guicreatehexshell.cpp
385 guiconverttopolymesh.cpp
387 guicreatehexibmesh.cpp
388 restricttoavailablevolumecells.cpp
392 ADD_LIBRARY(libengrid SHARED ${libengrid_SOURCES} ${libengrid_HEADERS_MOC} ${libengrid_FORMS_HEADERS} ${libengrid_RESOURCES_RCC})
394 if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
395 SET_TARGET_PROPERTIES(libengrid PROPERTIES MACOSX_RPATH 1)
398 SET_TARGET_PROPERTIES(libengrid PROPERTIES VERSION ${ENGRID_VERSION})
399 SET_TARGET_PROPERTIES(libengrid PROPERTIES COMPILE_FLAGS "-Wno-deprecated")
401 if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
402 target_link_libraries(libengrid tet)
403 target_link_libraries(libengrid ${QT_LIBRARIES})
404 target_link_libraries(libengrid ${VTK_LIBRARIES})
407 target_link_libraries(libengrid ${VTK_LIBRARIES})
408 INSTALL(TARGETS libengrid LIBRARY DESTINATION lib${LIB_SUFFIX})
409 INSTALL(FILES ${libengrid_HEADERS} DESTINATION include/engrid)