1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-22 23:48:58 +00:00
pqcrypto/test/bench/CMakeLists.txt
2022-02-10 11:20:34 -08:00

28 lines
518 B
CMake

cmake_minimum_required(VERSION 3.13)
set(CMAKE_CXX_STANDARD 14)
include_directories(${PROJECT_SOURCE_DIR}/3rd/gbench/include)
link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../3rd/gbench/lib)
if (MEMSAN)
set(CXXLIBS_FOR_MEMORY_SANITIZER cxx cxxabi)
endif()
add_executable(
bench
kyber.cc
main.cc
sphincs.cc)
target_link_libraries(
bench
pqc
benchmark
benchmark_main
${CXXLIBS_FOR_MEMORY_SANITIZER})
if (MEMSAN)
add_dependencies(bench ${CXXLIBS_FOR_MEMORY_SANITIZER})
endif()