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.

41 lines
1.3 KiB

4 weeks ago
  1. # - Try to find libz3
  2. # Once done this will define
  3. # LIBZ3_FOUND - System has libz3
  4. # LIBZ3_INCLUDE_DIRS - The libz3 include directories
  5. # LIBZ3_LIBRARIES - The libraries needed to use libz3
  6. # dependencies
  7. # -- TODO -- needed?
  8. # find include dir by searching for a concrete file, which definetely must be in it
  9. find_path(Z3_INCLUDE_DIR
  10. NAMES src/util/z3_exception.h #exemplary file, should only be available in z3
  11. PATHS ENV PATH INCLUDE
  12. PATH_SUFFIXES z3
  13. )
  14. # find library
  15. find_library(Z3_LIBRARY
  16. NAMES z3
  17. PATHS /usr/local/include/z3/build ENV PATH INCLUDE
  18. )
  19. # set up the final variables
  20. set(Z3_LIBRARIES ${Z3_LIBRARY})
  21. set(Z3_INCLUDE_DIRS ${Z3_INCLUDE_DIR}/src/util)
  22. # set the LIBZ3_FOUND variable by utilizing the following macro
  23. # (which also handles the REQUIRED and QUIET arguments)
  24. include(FindPackageHandleStandardArgs)
  25. find_package_handle_standard_args(z3 DEFAULT_MSG
  26. Z3_LIBRARY Z3_INCLUDE_DIR)
  27. IF (NOT Z3_FIND_QUIETLY)
  28. MESSAGE(STATUS "Found Z3: ${Z3_LIBRARY}")
  29. ENDIF (NOT Z3_FIND_QUIETLY)
  30. # debug output to see if everything went well
  31. #message(${Z3_INCLUDE_DIR})
  32. #message(${Z3_LIBRARY})
  33. # make the set variables only visible in advanced mode
  34. mark_as_advanced(Z3_LIBRARY Z3_INCLUDE_DIR )