Update Catch2 version
This commit is contained in:
parent
24a0a78ec6
commit
22f09c47fd
1 changed files with 10 additions and 3 deletions
|
|
@ -7,7 +7,7 @@ if (NOT Catch2_FOUND)
|
||||||
fetchcontent_declare(
|
fetchcontent_declare(
|
||||||
Catch2
|
Catch2
|
||||||
GIT_REPOSITORY https://github.com/catchorg/Catch2
|
GIT_REPOSITORY https://github.com/catchorg/Catch2
|
||||||
GIT_TAG v3.5.3
|
GIT_TAG v3.11.0
|
||||||
EXCLUDE_FROM_ALL
|
EXCLUDE_FROM_ALL
|
||||||
OVERRIDE_FIND_PACKAGE
|
OVERRIDE_FIND_PACKAGE
|
||||||
)
|
)
|
||||||
|
|
@ -20,7 +20,14 @@ enable_testing()
|
||||||
include(Catch)
|
include(Catch)
|
||||||
include(CatchAddTests)
|
include(CatchAddTests)
|
||||||
|
|
||||||
add_executable(tests tests_stream.cpp)
|
add_executable(tests
|
||||||
target_link_libraries(tests Catch2::Catch2WithMain)
|
tests_stream.cpp
|
||||||
|
)
|
||||||
|
target_link_libraries(tests Catch2::Catch2WithMain raiiSafeCuda)
|
||||||
|
set_target_properties(tests PROPERTIES
|
||||||
|
CXX_STANDARD 20
|
||||||
|
CXX_EXTENSIONS OFF
|
||||||
|
INTERPROCEDURAL_OPTIMIZATION ON
|
||||||
|
)
|
||||||
|
|
||||||
catch_discover_tests(tests WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
catch_discover_tests(tests WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue