Do I really have to sign every minor change
This commit is contained in:
parent
ef3db947b4
commit
26b4b518d6
|
@ -17,19 +17,19 @@ endif() #Adds Catch2::Catch2
|
||||||
|
|
||||||
include(CTest)
|
include(CTest)
|
||||||
|
|
||||||
|
|
||||||
if ( ${GUIX} )
|
|
||||||
include(Catch.cmake)
|
|
||||||
else()
|
|
||||||
include(Catch)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
add_executable(tests tests.cpp test_cases.cpp test_cases.h)
|
add_executable(tests tests.cpp test_cases.cpp test_cases.h)
|
||||||
target_compile_features(tests PRIVATE cxx_std_23)
|
target_compile_features(tests PRIVATE cxx_std_23)
|
||||||
|
|
||||||
# Should be linked to the rdricpp library, as well as the Catch2 testing library
|
# Should be linked to the rdricpp library, as well as the Catch2 testing library
|
||||||
|
if ( ${GUIX} )
|
||||||
|
include(Catch.cmake)
|
||||||
target_link_libraries(tests PRIVATE rdricpp Catch2Main Catch2)
|
target_link_libraries(tests PRIVATE rdricpp Catch2Main Catch2)
|
||||||
|
else()
|
||||||
|
include(Catch)
|
||||||
|
target_link_libraries(tests PRIVATE rdricpp Catch2::Catch2WithMain)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
catch_discover_tests(tests)
|
catch_discover_tests(tests)
|
||||||
add_test(NAME Test COMMAND tests)
|
add_test(NAME Test COMMAND tests)
|
||||||
|
|
Loading…
Reference in a new issue