使用DEB软件包与CMAKE集成CGAL
我想制作一个仅使用.deb软件包安装的CGAL库,该脚本使用CGAL库。 (使用:sudo apt-get安装libcgal-dev
)。
运行此命令时,我会收到以下错误消息:cmake -s。 -b build/-dcmake_build_type =发行。
我在Ubuntu 20.04机器上,带有以下版本:
- G ++ 9.4.0
- cmake 3.16
我的cmakelists.txt.txt看起来像这样:
cmake_minimum_required(版本3.16)
项目(集成)
find_package(cgal)
if(cgal_found)
消息(“发现CGAL!”)
endif(cgal_found)
add_executable($ {project_name} extract_sementation_into_mesh_example.cpp)
target_link_libraries($ {project_name} cgal :: cgal)
我也能够找到/usr/usr/unception/include/include/
的目录cgal
。
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/
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论