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