随笔分类 -  gtest

摘要:1)gtest编译 mkdir build && cd build cmake .. -DBUILD_GMOCK=OFF -DCMAKE_BUILD_TYPE=Debug make && make install 2)测试代码debug编译 cmake -S . -B build -DCMAKE_B 阅读全文
posted @ 2022-09-11 18:31 stupidstan2019 阅读(202) 评论(0) 推荐(0)
摘要:参考官网:https://google.github.io/googletest/quickstart-cmake.html 【流程】 1)CMakeLists.txt cmake_minimum_required(VERSION 3.14) project(my_project) # Google 阅读全文
posted @ 2022-09-11 18:21 stupidstan2019 阅读(91) 评论(0) 推荐(0)