注意:示例 draw_triangulation_2 需要 Qt,不会被编译

NOTICE: The example draw_triangulation_2 requires Qt and will not be compiled

我使用 vcpkg 安装了 cgal 和 qt5。然后在尝试使用qt5的时候遇到了这个问题。

cmake 似乎找到了 qt,但 CGAL_Qt5_FOUND 仍然 returns false,我仍然收到消息:注意:示例 draw_triangulation_2 需要 Qt,将不会被编译。

环境: 操作系统(Windows 10/64 位): 编译器:visual studio 2019 使用的特定标志(如果有): CGAL 版本:5.1 升压版本:1.72.0

我该如何解决?

我终于通过使用 vcpkg install cgal[qt]:x64-windows --recurse 而不是 vcpkg install cgal:x64-windows 重新安装 cgal 解决了这个问题。