1 # No pkg-config support in GMP, so try and find it manually
3 set(GMP_PREFIX "" CACHE PATH "path ")
5 find_path(GMP_INCLUDE_DIR gmp.h gmpxx.h
6 PATHS ${GMP_PREFIX}/include /usr/include /usr/local/include)
8 find_library(GMP_LIBRARY NAMES gmp libgmp
9 PATHS ${GMP_PREFIX}/lib /usr/lib /usr/local/lib)
11 if(GMP_INCLUDE_DIR AND GMP_LIBRARY)
12 get_filename_component(GMP_LIBRARY_DIR ${GMP_LIBRARY} PATH)
17 if(NOT GMP_FIND_QUIETLY)
18 MESSAGE(STATUS "Found GMP: ${GMP_LIBRARY}")
22 message(FATAL_ERROR "Could not find GMP")