# GoogleTest-Notes **Repository Path**: CPLASF000000/google-test-notes ## Basic Information - **Project Name**: GoogleTest-Notes - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-23 - **Last Updated**: 2026-04-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GoogleTest-Notes 这里主要介绍如何使用 GoogleTest 测试框架 ## visual studio集成GoogleTest 由于visual studio 本身已经集成了 GoogleTest,所以可以直接创建 GoogleTest的模板项目来使用 注意:这里是静态引用GoogleTest(lib) 参考:https://blog.csdn.net/xiaofeizai1116/article/details/122236501 ## 静态引入 GoogleTest 将 GoogleTest 编译成静态库然后引用 ### linux + cmake https://google.github.io/googletest/quickstart-cmake.html ### windows + cmake 由于都是使用 cmake,应该也是类似的 https://blog.csdn.net/m0_37662818/article/details/122566923 [GoogleTest-LibDemo](./Code/GoogleTest-LibDemo/CMakeLists.txt) ### windows + qmake 想要在Qt中使用,那么考虑用qmake会比较习惯(因为Qt6现在默认也使用cmake了) ## 动态引入 GoogleTest