# gTestDemo **Repository Path**: qanly/g-test-demo ## Basic Information - **Project Name**: gTestDemo - **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-05-20 - **Last Updated**: 2025-05-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README A little demo to learn gtest. 1. 安装并编译 gtest apt-get install libgtest-dev cmake cd /usr/src/gtest cmake . make 2. 将生成的库和头文件复制到系统库目录 cp lib/*.a /usr/lib/ cp -r include/gtest /usr/include/ 3. 编译命令 g++ xxx.cpp -std=c++17 -pthread -lgtest -lgtest_main -o xxx