Skip to content

Commit

Permalink
Add find gmp module
Browse files Browse the repository at this point in the history
  • Loading branch information
mtabebe committed Nov 10, 2016
1 parent 71932e9 commit 6c50d34
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions FindGMP.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Try to find the GNU Multiple Precision Arithmetic Library (GMP)
# See http://gmplib.org/

if (GMP_INCLUDES AND GMP_LIBRARIES)
set(GMP_FIND_QUIETLY TRUE)
endif (GMP_INCLUDES AND GMP_LIBRARIES)

find_path(GMP_INCLUDES
NAMES
gmp.h
PATHS
$ENV{GMPDIR}
${INCLUDE_INSTALL_DIR}
)

find_library(GMP_LIBRARIES gmp PATHS $ENV{GMPDIR} ${LIB_INSTALL_DIR})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GMP DEFAULT_MSG
GMP_INCLUDES GMP_LIBRARIES)
mark_as_advanced(GMP_INCLUDES GMP_LIBRARIES)

0 comments on commit 6c50d34

Please sign in to comment.