我如何使用CGAL配置CMake?

问题描述 投票:1回答:1

我正在为我的3D项目安装CGAL。我使用vcpkg软件包(库)安装了CGAL,并尝试使用CGAL配置编译器/链接器CMake。

[不幸的是,我在使用CMake配置CGAL时遇到错误(请参见下文)。如何将这两个链接在一起?错误是什么意思?

 ****CMake Error at CMakeLists.txt:22 (find_package):
By not providing "FindCGAL.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "CGAL", but
CMake did not find one.
Could not find a package configuration file provided by "CGAL" with any of
the following names:
CGALConfig.cmake
cgal-config.cmake
Add the installation prefix of "CGAL" to CMAKE_PREFIX_PATH or set
"CGAL_DIR" to a directory containing one of the above files. If "CGAL"
provides a separate development package or SDK, be sure it has been
installed.****
Configuring incomplete, errors occurred!
See also "C:/Users/Desktop/CGAL-5.0.2/examples/Triangulation_2/build/CMakeFiles/CMakeOutput.log".
c++ cmake cgal
1个回答
0
投票

错误意味着cmake找不到CGAL。您可以按照here的说明进行操作,尤其是在“示例配置”部分中,了解如何解决此问题。

© www.soinside.com 2019 - 2024. All rights reserved.