This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
signal-wrangler/test/CMakeLists.txt

20 lines
516 B
CMake
Raw Permalink Normal View History

2019-09-15 04:41:56 +08:00
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
project(signal-wrangler-test)
2019-09-15 04:41:56 +08:00
include(EnableWarnings)
include(DefaultBuildRelease)
find_package(Catch2 QUIET)
2019-09-15 04:41:56 +08:00
if( Catch2_FOUND )
add_executable(
sgnl-test
EXCLUDE_FROM_ALL
"${PROJECT_SOURCE_DIR}/test.cpp")
enable_warnings(sgnl-test PRIVATE)
target_link_libraries(sgnl-test sgnl::sgnl Catch2::Catch2 "-fsanitize=thread")
target_compile_features(sgnl-test PUBLIC cxx_std_17)
target_compile_options(sgnl-test PUBLIC "-fsanitize=thread")
endif()
2019-09-15 04:41:56 +08:00