1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-26 09:21:28 +00:00
pqcrypto/test/bench/CMakeLists.txt

26 lines
491 B
CMake
Raw Normal View History

2021-04-22 21:41:40 +01:00
cmake_minimum_required(VERSION 3.13)
2021-06-22 01:10:53 +01:00
set(CMAKE_CXX_STANDARD 14)
2021-04-22 21:41:40 +01:00
include_directories(${PROJECT_SOURCE_DIR}/3rd/gbench/include)
link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../3rd/gbench/lib)
2021-06-22 01:10:53 +01:00
if (MEMSAN)
set(CXXLIBS_FOR_MEMORY_SANITIZER cxx cxxabi)
endif()
2021-04-22 21:41:40 +01:00
add_executable(
2021-06-22 01:10:08 +01:00
bench
2021-06-22 01:10:53 +01:00
kyber.cc)
2021-04-22 21:41:40 +01:00
target_link_libraries(
2021-06-22 01:10:08 +01:00
bench
2021-04-22 21:41:40 +01:00
2021-06-22 01:10:08 +01:00
pqc
benchmark
benchmark_main
2021-06-22 01:14:17 +01:00
${CXXLIBS_FOR_MEMORY_SANITIZER})
2021-04-22 21:41:40 +01:00
2021-06-22 01:10:53 +01:00
if (MEMSAN)
add_dependencies(bench ${CXXLIBS_FOR_MEMORY_SANITIZER})
endif()