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.

29 lines
565 B

2 months ago
  1. find_package(GMP ${GMPXX_FIND_VERSION} QUIET)
  2. if(GMP_FOUND)
  3. # Include dir
  4. find_path(GMPXX_INCLUDE_DIR
  5. NAMES gmpxx.h
  6. HINTS ${GMP_INCLUDE_DIR}
  7. DOC "Include directory for GMPXX"
  8. )
  9. # Library files
  10. get_filename_component(GMP_LIB_PATH ${GMP_LIBRARY} DIRECTORY)
  11. find_library(GMPXX_LIBRARY
  12. NAMES gmpxx
  13. HINTS ${GMP_LIB_PATH}
  14. )
  15. if(GMPXX_INCLUDE_DIR AND GMPXX_LIBRARY)
  16. set(GMPXX_FOUND TRUE)
  17. endif()
  18. mark_as_advanced(
  19. GMPXX_FOUND
  20. GMPXX_INCLUDE_DIR
  21. GMPXX_LIBRARY
  22. )
  23. else()
  24. message(STATUS "Did not search for GMPXX, GMP is missing.")
  25. endif()