Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using triangle as library for other project #27

Open
mimre25 opened this issue Feb 9, 2018 · 1 comment
Open

Using triangle as library for other project #27

mimre25 opened this issue Feb 9, 2018 · 1 comment

Comments

@mimre25
Copy link

mimre25 commented Feb 9, 2018

Hi,
I'm not quite sure if this is the right place to post it, but I have a really hard time getting triangle to be included in my project.

I've already made a stackoverflow post (https://stackoverflow.com/questions/48669411/make-cmake-subdirectory-linking-to-external-library-fails/48669542) and am struggling with this since Monday.

I even installed it as system library but that doesn't help either.

It would be really cool if you could take a look.

I'm currently thinking, that the problem is the triangle library itself, and not the way I'm trying to include it, as that works fine for other libraries.

Thanks!

@jzarl
Copy link
Contributor

jzarl commented Apr 4, 2018

Linking against triangle from cmake should be pretty straight-forward. In the CMakeLists.txt, write something like this:

find_package(Triangle)
target_link_libraries(your-target Triangle::triangle-api)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants