FindMPFR.cmake 664 B

123456789101112131415161718
  1. # Try to find the MPFR librairies
  2. # GMP_FOUND - system has GMP lib
  3. # GMP_INCLUDE_DIR - the GMP include directory
  4. # GMP_LIBRARIES - Libraries needed to use GMP
  5. if (MPFR_INCLUDE_DIR AND MPFR_LIBRARIES)
  6. # Already in cache, be silent
  7. set(MPFR_FIND_QUIETLY TRUE)
  8. endif (MPFR_INCLUDE_DIR AND MPFR_LIBRARIES)
  9. find_path(MPFR_INCLUDE_DIR NAMES mpfr.h HINTS "./local/include")
  10. find_library(MPFR_LIBRARIES NAMES mpfr libmpfr HINTS "./local/lib")
  11. MESSAGE(STATUS "mpfr libs: " ${MPFR_LIBRARIES})
  12. include(FindPackageHandleStandardArgs)
  13. FIND_PACKAGE_HANDLE_STANDARD_ARGS(MPFR DEFAULT_MSG MPFR_INCLUDE_DIR MPFR_LIBRARIES)
  14. mark_as_advanced(MPFR_INCLUDE_DIR MPFR_LIBRARIES)