1.由包直接提供的文件。这是理想的解决方案,CMake将其称为配置模式。将有一个名为GMPConfig.cmake的...
set(GMP_MIN_VERSION 6.2.1) find_package(gmp ${GMP_MIN_VERSION} REQUIRED) set(MPFR_MIN_VERSION 4.1.0) pkg_check_modules(GMP REQUIRED IMPORTED_TARGET gmp>=${GMP_MIN_VERSION}) pkg_check_modules(MPFR REQUIRED IMPORTED_TARGET mpfr>=${MPFR_MIN_VERSION}) find_package(mpfr ${MPFR_MIN_VERSION...
Checking GMP ... GMP found Checking gettext ... gettext found Checking MongoDB ... MongoDB found Checking Doxygen ... Doxygen found Checking Graphviz ... Graphviz found Checking LCOV ... LCOV found Checking Python3 ... python3 NOT found. No required Home Brew dependencies to install. Chec...
find_package(PkgConfig REQUIRED) set(GMP_MIN_VERSION 6.2.1) find_package(gmp ${GMP_MIN_VERSION} REQUIRED) set(MPFR_MIN_VERSION 4.1.0) pkg_check_modules(GMP REQUIRED IMPORTED_TARGET gmp>=${GMP_MIN_VERSION}) pkg_check_modules(MPFR REQUIRED IMPORTED_TARGET mpfr>=${MPFR_MIN_VERSION}) find...