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:
Syed Shazli 2026-05-18 10:57:25 -04:00 committed by GitHub
parent dc3c9eda2f
commit 9b6126a54f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,6 +107,9 @@ add_executable(
hello_test
hello_test.cc
)
find_package(GTest REQUIRED)
target_link_libraries(
hello_test
GTest::gtest_main