fix tests (copy paste error)
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
eb4630d738
commit
cfe274f1e1
|
@ -10,10 +10,10 @@ if(Catch2_FOUND) # Catch 2.x / 3.x
|
|||
add_executable(all_tests main.cpp ${sources_tests})
|
||||
if(TARGET Catch2::Catch2WithMain) # Catch 3.x
|
||||
target_link_libraries(all_tests
|
||||
PRIVATE Catch2::Catch2WithMain ${PROJECT_NAME})
|
||||
PRIVATE Catch2::Catch2WithMain ${PROJECT_NAME}_lib)
|
||||
else() # Catch 2.x
|
||||
target_link_libraries(all_tests
|
||||
PRIVATE Catch2::Catch2 ${PROJECT_NAME})
|
||||
PRIVATE Catch2::Catch2 ${PROJECT_NAME}_lib)
|
||||
endif()
|
||||
target_include_directories(all_tests PRIVATE "/usr/include/catch2")
|
||||
catch_discover_tests(all_tests EXTRA_ARGS "${EXTRA_TEST_ARGS}")
|
||||
|
|
Loading…
Reference in New Issue
Block a user