I want to make a script that uses the CGAL Library having it installed only using the .deb package. (Using: sudo apt-get install libcgal-dev
).
I get the following error message when I run this command : cmake -S . -B build/ -DCMAKE_BUILD_TYPE= Release .
I am on an ubuntu 20.04 machine with the following versions:
- g++ 9.4.0
- cmake 3.16
My CMakeLists.txt looks like this:
cmake_minimum_required(VERSION 3.16)
project(integration)
find_package(CGAL)
if ( CGAL_FOUND )
message("CGAL Found !")
endif ( CGAL_FOUND )
add_executable(${PROJECT_NAME} extract_segmentation_into_mesh_example.cpp)
target_link_libraries(${PROJECT_NAME} CGAL::CGAL)
I'm also able to find the directory CGAL
in /usr/include/
.