1# Try to find the GNU Multiple Precision Arithmetic Library (GMP)
2# See http://gmplib.org/
3
4if (GMP_INCLUDES AND GMP_LIBRARIES)
5  set(GMP_FIND_QUIETLY TRUE)
6endif (GMP_INCLUDES AND GMP_LIBRARIES)
7
8find_path(GMP_INCLUDES
9  NAMES
10  gmp.h
11  PATHS
12  $ENV{GMPDIR}
13  ${INCLUDE_INSTALL_DIR}
14)
15
16find_library(GMP_LIBRARIES gmp PATHS $ENV{GMPDIR} ${LIB_INSTALL_DIR})
17
18include(FindPackageHandleStandardArgs)
19find_package_handle_standard_args(GMP DEFAULT_MSG
20                                  GMP_INCLUDES GMP_LIBRARIES)
21mark_as_advanced(GMP_INCLUDES GMP_LIBRARIES)
22