Skip to content

Build CGAL 5.6.1 to shared library #8456

@Akira-Tsunami

Description

@Akira-Tsunami

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?
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions