Marek Kotewicz
10 years ago
5 changed files with 81 additions and 22 deletions
@ -0,0 +1,32 @@ |
|||
# Find gmp |
|||
# |
|||
# Find the gmp includes and library |
|||
# |
|||
# if you nee to add a custom library search path, do it via via CMAKE_FIND_ROOT_PATH |
|||
# |
|||
# This module defines |
|||
# GMP_INCLUDE_DIR, where to find header, etc. |
|||
# GMP_LIBRARY, the libraries needed to use leveldb. |
|||
# GMP_FOUND, If false, do not try to use leveldb. |
|||
|
|||
# only look in default directories |
|||
find_path( |
|||
GMP_INCLUDE_DIR |
|||
NAMES gmp.h |
|||
DOC "gmp include dir" |
|||
) |
|||
|
|||
find_library( |
|||
GMP_LIBRARY |
|||
NAMES gmp |
|||
DOC "gmp library" |
|||
) |
|||
|
|||
|
|||
# handle the QUIETLY and REQUIRED arguments and set GMP_FOUND to TRUE |
|||
# if all listed variables are TRUE, hide their existence from configuration view |
|||
include(FindPackageHandleStandardArgs) |
|||
find_package_handle_standard_args(gmp DEFAULT_MSG |
|||
GMP_INCLUDE_DIR GMP_LIBRARY) |
|||
mark_as_advanced (GMP_INCLUDE_DIR GMP_LIBRARY) |
|||
|
Loading…
Reference in new issue