mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 20:49:48 +08:00
1ffc1b569d
* [gtest] Update to version 1.8.1 * [gtest] Fix typo in cmake adjustment code. Revert usage to follow CMake official guidelines.
7 lines
228 B
Plaintext
7 lines
228 B
Plaintext
The package gtest is compatible with built-in CMake targets:
|
|
|
|
enable_testing()
|
|
find_package(GTest MODULE REQUIRED)
|
|
target_link_libraries(main PRIVATE GTest::GTest GTest::Main)
|
|
add_test(AllTestsInMain main)
|