Skip to content
Newer
Older
100644 20 lines (15 sloc) 680 Bytes
6e40458 @jeremytregunna Added BigNum and SQLite3 addons to CMake
jeremytregunna authored
1 # Try to find the GMP 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
6 if (GMP_INCLUDE_DIR AND GMP_LIBRARIES)
7 # Already in cache, be silent
8 set(GMP_FIND_QUIETLY TRUE)
9 endif (GMP_INCLUDE_DIR AND GMP_LIBRARIES)
10
11 find_path(GMP_INCLUDE_DIR NAMES gmp.h )
12 find_library(GMP_LIBRARIES NAMES gmp libgmp )
13 find_library(GMPXX_LIBRARIES NAMES gmpxx libgmpxx )
14 MESSAGE(STATUS "GMP libs: " ${GMP_LIBRARIES} " " ${GMPXX_LIBRARIES} )
15
16 include(FindPackageHandleStandardArgs)
17 FIND_PACKAGE_HANDLE_STANDARD_ARGS(GMP DEFAULT_MSG GMP_INCLUDE_DIR GMP_LIBRARIES)
18
19 mark_as_advanced(GMP_INCLUDE_DIR GMP_LIBRARIES)
Something went wrong with that request. Please try again.