The source code and dockerfile for the GSW2024 AI Lab.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

24 lines
823 B

4 weeks ago
  1. # Try to find GMP
  2. # Once done this will define:
  3. # - GMP_FOUND - True if the system has GMP
  4. # - GMP_INCLUDE_DIRS - include directories for compiling
  5. # - GMP_LIBRARIES - libraries for linking
  6. # - GMP_DEFINITIONS - cflags suggested by pkg-config
  7. find_package(PkgConfig)
  8. pkg_check_modules(PC_GMP QUIET gmp)
  9. set(GMP_DEFINITIONS ${PC_GMP_CFLAGS_OTHER})
  10. find_path(GMP_INCLUDE_DIR gmp.h
  11. HINTS ${PC_GMP_INCLUDEDIR} ${PC_GMP_INCLUDE_DIRS})
  12. find_library(GMP_LIBRARIES NAMES gmp libgmp
  13. HINTS ${PC_GMP_LIBDIR} ${PC_GMP_LIBRARY_DIRS})
  14. include(FindPackageHandleStandardArgs)
  15. # handle the QUIETLY and REQUIRED arguments and set GMP_FOUND to TRUE
  16. # if all listed variables are TRUE
  17. find_package_handle_standard_args(GMP DEFAULT_MSG GMP_LIBRARIES GMP_INCLUDE_DIR)
  18. mark_as_advanced(GMP_INCLUDE_DIR GMP_LIBRARIES)