fixed edge display for volume cells
[engrid-github.git] / src / libengrid / CMakeLists.txt
blob7d8df3b8eb2612b70511e68b4c2c230e0179e71a
1 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 # +                                                                      +
3 # + This file is part of enGrid.                                         +
4 # +                                                                      +
5 # + Copyright 2008-2014 enGits GmbH                                      +
6 # +                                                                      +
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.                                  +
11 # +                                                                      +
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.                         +
16 # +                                                                      +
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/>.       +
19 # +                                                                      +
20 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTETLIBRARY")
24 SET(libengrid_HEADERS
25   blenderreader.h
26   blenderwriter.h
27   boundarycondition.h
28   boundarylayeroperation.h
29   boxselect.h
30   brlcadinterface.h
31   brlcadreader.h
32   cadinterface.h
33   celllayeriterator.h
34   cellneighbouriterator.h
35   cgaltricadinterface.h
36   cgnswriter.h
37   checkerboardgraphiterator.h
38   checkforoverlap.h
39   checksurfaceintegrity.h
40   containertricks.h
41   correctsurfaceorientation.h
42   createboundarylayershell.h
43   createcadtesselation.h
44   createhexcore.h
45   createvolumemesh.h
46   deletecells.h
47   deletepickedcell.h
48   deletepickedpoint.h
49   deletestraynodes.h
50   deletetetras.h
51   deletevolumegrid.h
52   dialoglineedit.h
53   dialogoperation.h
54   dolfynwriter.h
55   edgelengthsource.h
56   edgelengthsourcemanager.h
57   eghashset.h
58   egvtkinteractorstyle.h
59   egvtkobject.h
60   elements.h
61   eliminatesmallbranches.h
62   engrid.h
63   engrid_version.h
64   error.h
65   facefinder.h
66   filetemplate.h
67   fixcadgeometry.h
68   fixstl.h
69   foamobject.h
70   foamreader.h
71   foamwriter.h
72   geometrysmoother.h
73   geometrytools.h
74   globalnodegraphinterface.h
75   gmshiooperation.h
76   gmshreader.h
77   gmshwriter.h
78   gridsmoother.h
79   guibrlcadimportdialogue.h
80   guicreateboundarylayer.h
81   guicreatehexcore.h
82   guicreatesurfacemesh.h
83   guicreatevolumemesh.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
92   guimainwindow.h
93   guimergevolumes.h
94   guimirrormesh.h
95   guinormalextrusion.h
96   guipick.h
97   guiselectboundarycodes.h
98   guisetboundarycode.h
99   guisettingstab.h
100   guisettingsviewer.h
101   guisurfacemesher.h
102   guitransform.h
103   guivolumedelegate.h
104   insertpoints.h
105   iooperation.h
106   iterator.h
107   laplacesmoother.h
108   layeriterator.h
109   localnodegraphinterface.h
110   ../math/linsolve.h
111   ../math/mathvector.h
112   ../math/mathvector_methods.h
113   ../math/mathvector_operators.h
114   ../math/mathvector_structs.h
115   ../math/smallsquarematrix.h
116   mergenodes.h
117   meshpartition.h
118   meshqualityfaceorientation.h
119   meshquality.h
120   multipagewidget.h
121   multipagewidgetpage.h
122   multisolidasciistlreader.h
123   neutralwriter.h
124   nodelayeriterator.h
125   octree.h
126   openfoamcase.h
127   openfoamtools.h
128   operation.h
129   optimisation.h
130   optimisenormalvector.h
131   physicalboundarycondition.h
132   plywriter.h
133   pointfinder.h
134   polydatareader.h
135   polymesh.h
136   polymolecule.h
137   reducedpolydatareader.h
138   reducesurfacetriangulation.h
139   removepoints.h
140   ruleedgelengthsource.h
141   seedsimpleprismaticlayer.h
142   seligairfoilreader.h
143   setboundarycode.h
144   showinfo.h
145   simplefoamwriter.h
146   smoothandswapsurface.h
147   smoothingutilities.h
148   snaptofeatures.h
149   sortablevector.h
150   statistics.h
151   std_connections.h
152   std_includes.h
153   stitchholes.h
154   stlreader.h
155   stlwriter.h
156   su2writer.h
157   surfacealgorithm.h
158   surfacemesher.h
159   surfacemeshsmoother.h
160   surfacenodemovementcheck.h
161   surfaceoperation.h
162   swaptriangles.h
163   tauwriter.h
164   tetgenoperation.h
165   text3d.h
166   timer.h
167   triangle.h
168   triangularcadinterface.h
169   tricoord.h
170   tvtkoperation.h
171   uniquevector.h
172   updatedesiredmeshdensity.h
173   updatesurfproj.h
174   utilities.h
175   vertexdelegate.h
176   vertexmeshdensity.h
177   volumedefinition.h
178   vtkEgBoundaryCodesFilter.h
179   vtkEgEliminateShortEdges.h
180   vtkEgExtractVolumeCells.h
181   vtkEgGridFilter.h
182   vtkEgNormalExtrusion.h
183   vtkEgPolyDataToUnstructuredGridFilter.h
184   vtkreader.h
185   xmlhandler.h
186   guifillplane.h
187   fillplane.h
188   drnumwriter.h
189   computemeshdensity.h
190   converttopolymesh.h
191   guicreatehexshell.h
192   guiconverttopolymesh.h
193   createhexibmesh.h
194   guicreatehexibmesh.h
195   restricttoavailablevolumecells.h
198 SET(libengrid_FORMS
199   guibooleangeometryoperation.ui
200   guibrlcadimportdialogue.ui
201   guicreateboundarylayer.ui
202   guicreatehexcore.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
213   guimainwindow.ui
214   guimergevolumes.ui
215   guimirrormesh.ui
216   guinormalextrusion.ui
217   guipick.ui
218   guiselectboundarycodes.ui
219   guisetboundarycode.ui
220   guisurfacemesher.ui
221   guitransform.ui
222   guifillplane.ui
223   guicreatehexshell.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
233   ${libengrid_HEADERS}
234   ${linengrid_HEADERS_MOC}
235   blenderreader.cpp
236   blenderwriter.cpp
237   boundarycondition.cpp
238   boundarylayeroperation.cpp
239   boxselect.cpp
240   brlcadinterface.cpp
241   brlcadreader.cpp
242   cadinterface.cpp
243   celllayeriterator.cpp
244   cellneighbouriterator.cpp
245   cgaltricadinterface.cpp
246   cgnswriter.cpp
247   checkforoverlap.cpp
248   checksurfaceintegrity.cpp
249   correctsurfaceorientation.cpp
250   createboundarylayershell.cpp
251   createcadtesselation.cpp
252   createhexcore.cpp
253   createvolumemesh.cpp
254   deletecells.cpp
255   deletepickedcell.cpp
256   deletepickedpoint.cpp
257   deletestraynodes.cpp
258   deletetetras.cpp
259   deletevolumegrid.cpp
260   dialoglineedit.cpp
261   dolfynwriter.cpp
262   edgelengthsourcemanager.cpp
263   egvtkinteractorstyle.cpp
264   egvtkobject.cpp
265   elements.cpp
266   eliminatesmallbranches.cpp
267   error.cpp
268   facefinder.cpp
269   filetemplate.cpp
270   fixcadgeometry.cpp
271   fixstl.cpp
272   foamobject.cpp
273   foamreader.cpp
274   foamwriter.cpp
275   geometrysmoother.cpp
276   geometrytools.cpp
277   gmshiooperation.cpp
278   gmshreader.cpp
279   gmshwriter.cpp
280   gridsmoother.cpp
281   guibrlcadimportdialogue.cpp
282   guicreateboundarylayer.cpp
283   guicreatehexcore.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
294   guimainwindow.cpp
295   guimergevolumes.cpp
296   guimirrormesh.cpp
297   guinormalextrusion.cpp
298   guipick.cpp
299   guiselectboundarycodes.cpp
300   guisetboundarycode.cpp
301   guisettingstab.cpp
302   guisettingsviewer.cpp
303   guisurfacemesher.cpp
304   guitransform.cpp
305   guivolumedelegate.cpp
306   insertpoints.cpp
307   iooperation.cpp
308   iterator.cpp
309   laplacesmoother.cpp
310   layeriterator.cpp
311   mergenodes.cpp
312   meshpartition.cpp
313   meshquality.cpp
314   meshqualityfaceorientation.cpp
315   multipagewidget.cpp
316   multipagewidgetpage.cpp
317   multisolidasciistlreader.cpp
318   neutralwriter.cpp
319   nodelayeriterator.cpp
320   octree.cpp
321   openfoamcase.cpp
322   openfoamtools.cpp
323   operation.cpp
324   optimisation.cpp
325   optimisenormalvector.cpp
326   physicalboundarycondition.cpp
327   plywriter.cpp
328   pointfinder.cpp
329   polydatareader.cpp
330   polymesh.cpp
331   polymolecule.cpp
332   reducedpolydatareader.cpp
333   reducesurfacetriangulation.cpp
334   removepoints.cpp
335   ruleedgelengthsource.cpp
336   seedsimpleprismaticlayer.cpp
337   seligairfoilreader.cpp
338   setboundarycode.cpp
339   showinfo.cpp
340   simplefoamwriter.cpp
341   smoothandswapsurface.cpp
342   smoothingutilities.cpp
343   snaptofeatures.cpp
344   stitchholes.cpp
345   stlreader.cpp
346   stlwriter.cpp
347   su2writer.cpp
348   surfacealgorithm.cpp
349   surfacemesher.cpp
350   surfacemeshsmoother.cpp
351   surfacenodemovementcheck.cpp
352   surfaceoperation.cpp
353   swaptriangles.cpp
354   tauwriter.cpp
355   text3d.cpp
356   tetgenoperation.cpp
357   timer.cpp
358   triangle.cpp
359   triangularcadinterface.cpp
360   tricoord.cpp
361   updatedesiredmeshdensity.cpp
362   updatesurfproj.cpp
363   utilities.cpp
364   vertexdelegate.cpp
365   vertexmeshdensity.cpp
366   volumedefinition.cpp
367   vtkEgBoundaryCodesFilter.cxx
368   vtkEgEliminateShortEdges.cxx
369   vtkEgExtractVolumeCells.cxx
370   vtkEgGridFilter.cxx
371   vtkEgNormalExtrusion.cxx
372   vtkEgPolyDataToUnstructuredGridFilter.cxx
373   vtkreader.cpp
374   xmlhandler.cpp
375   guifillplane.cpp
376   fillplane.cpp
377   drnumwriter.cpp
378   computemeshdensity.cpp
379   converttopolymesh.cpp
380   guicreatehexshell.cpp
381   guiconverttopolymesh.cpp
382   createhexibmesh.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)
392 endif()
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)
404 endif()
406 target_link_libraries(libengrid ${VTK_LIBRARIES})
407 INSTALL(TARGETS libengrid LIBRARY DESTINATION lib)
408 INSTALL(FILES ${libengrid_HEADERS} DESTINATION include/engrid)