diff options
Diffstat (limited to 'cmake/Modules/FindGmp.cmake')
-rw-r--r-- | cmake/Modules/FindGmp.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/Modules/FindGmp.cmake b/cmake/Modules/FindGmp.cmake new file mode 100644 index 00000000..c59f2219 --- /dev/null +++ b/cmake/Modules/FindGmp.cmake @@ -0,0 +1,9 @@ +find_package(PkgConfig) + +if (PKG_CONFIG_FOUND) + pkg_check_modules(GMP gmp) +else() + find_path(GMP_INCLUDE_DIRS NAMES gmp.h PATH_SUFFIXES) + find_library(GMP_LIBRARIES NAMES gmp) + find_package_handle_standard_args(GMP DEFAULT_MSG GMP_LIBRARIES GMP_INCLUDE_DIRS) +endif() |