You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
554 B

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