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.

47 lines
1.4 KiB

2 months 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 definitely must be in it
  9. find_path(Z3_INCLUDE_DIR
  10. NAMES z3++.h
  11. PATHS ENV PATH INCLUDE "${Z3_ROOT}/include" "/usr/include/z3" "/usr/local/include/z3/"
  12. )
  13. # find library
  14. find_library(Z3_LIBRARY
  15. NAMES z3
  16. PATHS ENV PATH INCLUDE "${Z3_ROOT}/lib"
  17. )
  18. find_program(Z3_EXEC
  19. NAMES z3
  20. PATHS ENV PATH INCLUDE "${Z3_ROOT}/bin"
  21. )
  22. # set up the final variables
  23. set(Z3_LIBRARIES ${Z3_LIBRARY})
  24. set(Z3_INCLUDE_DIRS ${Z3_INCLUDE_DIR})
  25. set(Z3_SOLVER ${Z3_EXEC})
  26. # set the LIBZ3_FOUND variable by utilizing the following macro
  27. # (which also handles the REQUIRED and QUIET arguments)
  28. include(FindPackageHandleStandardArgs)
  29. find_package_handle_standard_args(Z3 DEFAULT_MSG
  30. Z3_LIBRARY Z3_INCLUDE_DIR)
  31. IF (NOT Z3_FIND_QUIETLY)
  32. MESSAGE(STATUS "Found Z3: ${Z3_LIBRARY}")
  33. ENDIF (NOT Z3_FIND_QUIETLY)
  34. # debug output to see if everything went well
  35. #message(${Z3_INCLUDE_DIR})
  36. #message(${Z3_LIBRARY})
  37. # make the set variables only visible in advanced mode
  38. mark_as_advanced(Z3_LIBRARY Z3_INCLUDE_DIR Z3_SOLVER, Z3_EXEC)