FindOQS.cmake 555 B

1234567891011121314151617181920
  1. # Filename: FindOQS.cmake
  2. # Authors: darktohka (27 Jul, 2022)
  3. #
  4. # Usage:
  5. # find_package(OQS [REQUIRED] [QUIET])
  6. #
  7. # Once done this will define:
  8. # OQS_FOUND - system has liboqs
  9. # OQS_INCLUDE_DIR - the include directory containing oqs/
  10. # OQS_LIBRARY - the path to the liboqs library
  11. #
  12. find_path(OQS_INCLUDE_DIR NAMES "oqs/common.h")
  13. find_library(OQS_LIBRARY NAMES "oqs")
  14. mark_as_advanced(OQS_INCLUDE_DIR OQS_LIBRARY)
  15. include(FindPackageHandleStandardArgs)
  16. find_package_handle_standard_args(OQS DEFAULT_MSG OQS_INCLUDE_DIR OQS_LIBRARY)