mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 17:51:47 +08:00
9 lines
277 B
Plaintext
9 lines
277 B
Plaintext
The package gtest is compatible with built-in CMake targets:
|
|
|
|
enable_testing()
|
|
|
|
find_package(GTest CONFIG REQUIRED)
|
|
target_link_libraries(main PRIVATE GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main)
|
|
|
|
add_test(AllTestsInMain main)
|