kdelibs/cmake/modules/FindMPFR.cmake
Ivailo Monev d411471be1 cmake: import various modules
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-10-29 10:09:43 +02:00

23 lines
784 B
CMake

# Try to find the MPFR librairies
# MPFR_FOUND - system has MPFR lib
# MPFR_INCLUDE_DIR - the MPFR include directory
# MPFR_LIBRARIES - Libraries needed to use MPFR
# Copyright (c) 2012, Evan Teran <evan.teran@gmail.com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
if (MPFR_INCLUDE_DIR AND MPFR_LIBRARIES)
# Already in cache, be silent
set(MPFR_FIND_QUIETLY TRUE)
endif (MPFR_INCLUDE_DIR AND MPFR_LIBRARIES)
find_path(MPFR_INCLUDE_DIR NAMES mpfr.h )
find_library(MPFR_LIBRARIES NAMES mpfr libmpfr)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(MPFR DEFAULT_MSG MPFR_INCLUDE_DIR MPFR_LIBRARIES)
mark_as_advanced(MPFR_INCLUDE_DIR MPFR_LIBRARIES)