From ebe0a2529ef969837aa7c6523f28d03a747d8822 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Sun, 18 Nov 2007 16:33:19 +0000 Subject: It's used by kdeutils/extragear/network svn path=/trunk/KDE/kdelibs/; revision=738323 --- modules/FindGMP.cmake | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 modules/FindGMP.cmake (limited to 'modules') diff --git a/modules/FindGMP.cmake b/modules/FindGMP.cmake new file mode 100644 index 00000000..f9efe90c --- /dev/null +++ b/modules/FindGMP.cmake @@ -0,0 +1,23 @@ +# Try to find the GMP librairies +# GMP_FOUND - system has GMP lib +# GMP_INCLUDE_DIR - the GMP include directory +# GMP_LIBRARIES - Libraries needed to use GMP + +# Copyright (c) 2006, Laurent Montel, +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + + +if (GMP_INCLUDE_DIR AND GMP_LIBRARIES) + # Already in cache, be silent + set(GMP_FIND_QUIETLY TRUE) +endif (GMP_INCLUDE_DIR AND GMP_LIBRARIES) + +find_path(GMP_INCLUDE_DIR NAMES gmp.h ) +find_library(GMP_LIBRARIES NAMES gmp ) + +include(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(GMP DEFAULT_MSG GMP_INCLUDE_DIR GMP_LIBRARIES) + +mark_as_advanced(GMP_INCLUDE_DIR GMP_LIBRARIES) -- cgit v1.2.1