-
执行install_FindCGAL文件时,FindCGAL.cmake找不到,因为FindCGAL.cmake已经从代码库中删除不用了。
-
GMP
GNU Multiple Precision Arithmetic (GMP) and GNU Multiple Precision Floating-Point Reliably (MPFR) Libraries
GMP Version 4.2 or later, MPFR Version 2.2.1 or later
下载下来的GMP包
CGAL-5.6.1-win64-auxiliary-libraries-gmp-mpfr.zip
解压到
Installation目录下,执行cmake install 才能成功,不是
Using CGAL on Windows (with Visual C++)的
2.1 Installing GMP and MPFR中提到的
you should then get the directory CGAL-5.6.1\auxiliary\gmp
但是安装后
编译CGAL example会说找不到GMP,需要把上面GMP包解压到CGAL的安装目录下。
- 因为项目使用boost的静态链接库
set(CGAL_Boost_USE_STATIC_LIBS ON)
find_package(CGAL REQUIRED)
#set(Boost_USE_STATIC_LIBS ON)
find_package(Boost REQUIRED COMPONENTS graph timer)
include_directories(${Boost_INCLUDE_DIRS})