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
6 # Copyright (c) 2006, Laurent Montel, <montel@kde.org>
8 # Redistribution and use is allowed according to the terms of the BSD license.
9 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
12 if (GMP_INCLUDE_DIR AND GMP_LIBRARIES)
13 # Already in cache, be silent
14 set(GMP_FIND_QUIETLY TRUE)
15 endif (GMP_INCLUDE_DIR AND GMP_LIBRARIES)
17 find_path(GMP_INCLUDE_DIR NAMES gmp.h )
18 find_library(GMP_LIBRARIES NAMES gmp )
20 include(FindPackageHandleStandardArgs)
21 FIND_PACKAGE_HANDLE_STANDARD_ARGS(GMP DEFAULT_MSG GMP_INCLUDE_DIR GMP_LIBRARIES)
23 mark_as_advanced(GMP_INCLUDE_DIR GMP_LIBRARIES)