aboutsummaryrefslogtreecommitdiff
path: root/ports/gtest/usage
diff options
context:
space:
mode:
Diffstat (limited to 'ports/gtest/usage')
-rw-r--r--ports/gtest/usage6
1 files changed, 6 insertions, 0 deletions
diff --git a/ports/gtest/usage b/ports/gtest/usage
new file mode 100644
index 000000000..fa226ceed
--- /dev/null
+++ b/ports/gtest/usage
@@ -0,0 +1,6 @@
+The package gtest is compatible with built-in CMake targets:
+
+ enable_testing()
+ find_package(GTest REQUIRED)
+ target_link_libraries(main PRIVATE GTest::GTest GTest::Main)
+ add_test(AllTestsInMain main)