Skip to content

Commit

Permalink
Link kat_kem against OpenSSL as necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
SWilson4 committed Jan 8, 2024
1 parent db5bf1f commit 8eb08ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,15 @@ if(CMAKE_USE_PTHREADS_INIT)
set(API_TEST_DEPS ${API_TEST_DEPS} Threads::Threads)
endif()

if(OQS_USE_OPENSSL AND BUILD_SHARED_LIBS)
set(API_TEST_DEPS ${API_TEST_DEPS} ${OPENSSL_CRYPTO_LIBRARY})
endif()

# KEM API tests
add_executable(example_kem example_kem.c)
target_link_libraries(example_kem PRIVATE ${API_TEST_DEPS})

add_executable(kat_kem kat_kem.c)
add_executable(kat_kem kat_kem.c ${COMMON_OBJS}) # need to access SHA3 code for HQC
target_link_libraries(kat_kem PRIVATE ${API_TEST_DEPS})

add_executable(test_kem test_kem.c)
Expand Down

0 comments on commit 8eb08ec

Please sign in to comment.