Build CGAL 5.6.1 to shared library #8463
Akira-Tsunami
started this conversation in
General
Replies: 1 comment 1 reply
-
Hello, this would not help you. The built library contained only a few global non-template functions and some global variables. Whart you have to do instead is build a shared library where inside you use CGAL, but the exported interfaces are CGAL-free, Can you shatre a minimal project on github which exposes the problem you experience.,We then could have a look. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm new to CGAL. I want to incorporate the library part of CGAL to the my custom plugin of Unreal Engine. At first, I tried to use it as headers-only library; however, CGAL has dependency on boost and boost has many naming violation with the macros/functions/symbols of Unreal itself when compiling, so it didn't work.
So now I'm trying to build CGAL 5.6.1 to shared library (.dll in Windows), but I can't figure out how to do like this. I tried to set the variable like BUILD_SHARED_LIBS manifested in documentation. But it still didn't work. When I configured out and generated, the project just produced another identical headers-only library. And I browsed the content of cmake-related files that seems there are very few hints about this variable BUILD_SHARED_LIBS (sorry I have no much experience with CMake). And I found the default is headers-only since CGAL 5.0.
So my question is there option to build CGAL 5.6.1 to shared library? If yes, how to enable it? Or I have to resort to the older version?
Beta Was this translation helpful? Give feedback.
All reactions