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.

20 lines
507 B

  1. FIND_PATH(GMP_INCLUDE_DIR
  2. gmp.h )
  3. FIND_LIBRARY(GMP_LIBRARIES
  4. NAMES gmp
  5. HINTS /usr/local/lib )
  6. IF (GMP_INCLUDE_DIR AND GMP_LIBRARIES)
  7. SET(GMP_FOUND TRUE)
  8. ENDIF (GMP_INCLUDE_DIR AND GMP_LIBRARIES)
  9. IF (GMP_FOUND)
  10. IF (NOT GMP_FIND_QUIETLY)
  11. MESSAGE(STATUS "Found GMP: ${GMP_LIBRARIES}")
  12. ENDIF (NOT GMP_FIND_QUIETLY)
  13. ELSE (GMP_FOUND)
  14. IF (GMP_FIND_REQUIRED)
  15. MESSAGE(FATAL_ERROR "Could not find GMP")
  16. ENDIF (GMP_FIND_REQUIRED)
  17. ENDIF (GMP_FOUND)