tibia-client/cmake/FindGMP.cmake

11 lines
390 B
CMake
Raw Normal View History

2011-05-15 23:12:39 +02:00
# Try to find the GMP librairy
2011-05-15 21:19:41 +02:00
# GMP_FOUND - system has GMP
2011-04-10 03:34:14 +02:00
# GMP_INCLUDE_DIR - the GMP include directory
2011-05-15 21:19:41 +02:00
# GMP_LIBRARY - the GMP library
2011-04-10 03:34:14 +02:00
2011-05-15 21:19:41 +02:00
FIND_PATH(GMP_INCLUDE_DIR NAMES gmp.h)
FIND_LIBRARY(GMP_LIBRARY NAMES libgmp.a gmp)
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GMP DEFAULT_MSG GMP_LIBRARY GMP_INCLUDE_DIR)
MARK_AS_ADVANCED(GMP_LIBRARY GMP_INCLUDE_DIR)