使用DEB软件包与CMAKE集成CGAL

发布于 2025-01-25 23:27:21 字数 878 浏览 2 评论 0原文

我想制作一个仅使用.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 .

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文