1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00
falkonOfficial/cmake/FindGMP.cmake

17 lines
484 B
CMake

if (GMP_INCLUDE_DIR AND GMP_LIBRARY)
set(GMP_FIND_QUIETLY TRUE)
endif (GMP_INCLUDE_DIR AND GMP_LIBRARY)
find_path(GMP_INCLUDE_DIR NAMES gmp.h
PATHS $ENV{GMPDIR} ${INCLUDE_INSTALL_DIR}
)
find_library(GMP_LIBRARY gmp
PATHS $ENV{GMPDIR} ${LIB_INSTALL_DIR}
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GMP DEFAULT_MSG
GMP_INCLUDE_DIR GMP_LIBRARY)
mark_as_advanced(GMP_INCLUDE_DIR GMP_LIBRARY)