2021-03-07 02:40:21 +02:00
|
|
|
# Try to find GMP, once done this will define:
|
2020-02-08 16:05:03 +00:00
|
|
|
#
|
|
|
|
# GMP_FOUND - system has GMP
|
2014-11-13 01:04:59 +02:00
|
|
|
# GMP_INCLUDE_DIR - the GMP include directory
|
2020-02-19 20:52:40 +00:00
|
|
|
# GMP_LIBRARIES - the libraries needed to use GMP
|
2020-02-08 16:05:03 +00:00
|
|
|
#
|
2021-03-07 02:40:21 +02:00
|
|
|
# Copyright (c) 2020 Ivailo Monev <xakepa10@gmail.com>
|
2014-11-13 01:04:59 +02:00
|
|
|
#
|
|
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
2020-02-19 20:52:40 +00:00
|
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2020-02-08 16:05:03 +00:00
|
|
|
find_path(GMP_INCLUDE_DIR
|
2020-02-10 20:40:01 +00:00
|
|
|
NAMES gmp.h
|
|
|
|
HINTS $ENV{GMPDIR}/include
|
2020-02-08 16:05:03 +00:00
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2020-02-08 16:05:03 +00:00
|
|
|
find_library(GMP_LIBRARIES
|
2020-02-10 20:40:01 +00:00
|
|
|
NAMES gmp
|
|
|
|
HINTS $ENV{GMPDIR}/lib
|
2020-02-08 16:05:03 +00:00
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
2020-02-08 16:05:03 +00:00
|
|
|
find_package_handle_standard_args(GMP
|
|
|
|
REQUIRED_VARS GMP_LIBRARIES GMP_INCLUDE_DIR
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
mark_as_advanced(GMP_INCLUDE_DIR GMP_LIBRARIES)
|