[DO-987] catch recipe (!3)

Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/3
Reviewed-by: Denis Patrakeev <denis.patrakeev@avroid.team>
Co-authored-by: Aleksandr Vodyanov <aleksandr.vodyanov@avroid.team>
Co-committed-by: Aleksandr Vodyanov <aleksandr.vodyanov@avroid.team>
This commit is contained in:
Aleksandr Vodyanov
2024-11-21 17:23:08 +03:00
committed by Denis Patrakeev
parent bb6197bed7
commit e3106d807c
27 changed files with 928 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
cmake_minimum_required(VERSION 3.8)
project(test_package LANGUAGES CXX)
find_package(Catch2 REQUIRED CONFIG)
if(WITH_PREFIX)
add_executable(standalone 300-standalone-with-prefix.cpp)
add_executable(benchmark 400-benchmark-with-prefix.cpp)
else()
add_executable(standalone 100-standalone.cpp)
add_executable(benchmark 200-benchmark.cpp)
endif()
target_link_libraries(standalone PRIVATE Catch2::Catch2WithMain)
target_compile_features(standalone PRIVATE cxx_std_14)
target_link_libraries(benchmark PRIVATE Catch2::Catch2WithMain)
target_compile_features(benchmark PRIVATE cxx_std_14)