File: FindOQS.cmake

package info (click to toggle)
wolfssl 5.8.4-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 117,604 kB
  • sloc: ansic: 1,584,954; asm: 481,206; sh: 11,586; cs: 6,596; xml: 3,878; perl: 3,291; makefile: 2,058; ada: 1,891; javascript: 748; python: 636; cpp: 131; ruby: 118; objc: 80; tcl: 73
file content (20 lines) | stat: -rw-r--r-- 555 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Filename: FindOQS.cmake
# Authors: darktohka (27 Jul, 2022)
#
# Usage:
#   find_package(OQS [REQUIRED] [QUIET])
#
# Once done this will define:
#   OQS_FOUND       - system has liboqs
#   OQS_INCLUDE_DIR - the include directory containing oqs/
#   OQS_LIBRARY     - the path to the liboqs library
#

find_path(OQS_INCLUDE_DIR NAMES "oqs/common.h")

find_library(OQS_LIBRARY NAMES "oqs")

mark_as_advanced(OQS_INCLUDE_DIR OQS_LIBRARY)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(OQS DEFAULT_MSG OQS_INCLUDE_DIR OQS_LIBRARY)