We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8107097 commit 04d913eCopy full SHA for 04d913e
test/CMakeLists.txt
@@ -50,7 +50,7 @@ foreach(file ${test_sources})
50
endif()
51
52
target_link_libraries(
53
- ${PROJECT_NAME}
+ ${test_name}_Tests
54
PUBLIC
55
GTest::GTest
56
GTest::Main
@@ -60,7 +60,7 @@ foreach(file ${test_sources})
60
elseif(${CMAKE_PROJECT_NAME}_USE_CATCH2)
61
find_package(Catch2 REQUIRED)
62
63
64
65
Catch2::Catch2
66
${${CMAKE_PROJECT_NAME}_TEST_LIB}
@@ -75,9 +75,9 @@ foreach(file ${test_sources})
75
76
add_test(
77
NAME
78
+ ${test_name}
79
COMMAND
80
81
)
82
endforeach()
83
0 commit comments