pineapple-src/externals/vcpkg/ports/gtest/usage
2022-07-23 03:01:36 +02:00

8 lines
277 B
Text
Executable file

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)