mirror of
https://github.com/google/googletest.git
synced 2026-06-15 08:26:11 +08:00
added find_package
Without this line, I got an error saying: CMake Error at CMakeLists.txt:23 (target_link_libraries):
Target "hello_test" links to:
GTest::gtest_main
This commit is contained in:
parent
dc3c9eda2f
commit
9b6126a54f
@ -107,6 +107,9 @@ add_executable(
|
||||
hello_test
|
||||
hello_test.cc
|
||||
)
|
||||
|
||||
find_package(GTest REQUIRED)
|
||||
|
||||
target_link_libraries(
|
||||
hello_test
|
||||
GTest::gtest_main
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user