UG4 / ugcore

The core functionality of UG4. Includes sources, build-scripts, and utility scripts.
https://github.com/UG4/ugcore
Other
36 stars 23 forks source link

Optionally Link Tetgen #57

Closed sreiter closed 2 years ago

sreiter commented 2 years ago

We offered the option to link a custom built tetgen library to ug4 for quite some time. This was rather tedious and prone to error. We also offer tools/tetgen which may be installed through ughub. The latter just builds an executable which may be used from commandline or e.g. by the ProMesh application (not the plugin).

With this merge request I removed the first option and instead included an option LINK_TETGEN which is offered by tools/tetgen.

To use it, install tetgen using ughub, enable the tool in cmake and also enable LINK_TETGEN in cmake:

ughub install tetgen
cmake -Dtetgen=ON -DLINK_TETGEN=ON .

Part of this merge request is also a bit of cleanup to link libraries to targets in a more specific way.

Finally, also part of this merge request is a fix for builds with VisualStudio on Windows: Binaries are now written to ug4/bin directly instead of ug4/bin/Release or ug4/bin/Debug.