fatal error: 'CGAL/Simple_cartesian.h' file not found #7052
-
Issue DetailsI've successfully installed CGAL, both from source, using brew or conda. However, I'm not able to include it in my cpp code. I pasted the error message and related CMakeList.txt part as follows. Thank you in advance for any idea! Source CodeIn the CMakeList.txt, I specify the dirs like this:
and during
Everything looks fine, but I just get the error message when I'm trying to include CGAL in my code and run
Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In your target_link_libraries(mesh_hole_fill_eric PRIVATE CGAL::CGAL) See the documentation at https://doc.cgal.org/latest/Manual/devman_create_and_use_a_cmakelist.html. |
Beta Was this translation helpful? Give feedback.
In your
CMakeLists.txt
, after the definition of the targetmesh_hole_fill_eric
, add a line like that one:See the documentation at https://doc.cgal.org/latest/Manual/devman_create_and_use_a_cmakelist.html.