摘要:
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 阅读全文
摘要:
参考官网:https://google.github.io/googletest/quickstart-cmake.html 【流程】 1)CMakeLists.txt cmake_minimum_required(VERSION 3.14) project(my_project) # Google 阅读全文
摘要:
【编译调试选项】set(CMAKE_C_FLAGS "-g3 -gdwarf-2 -Wall -Werror -Wextra") 阅读全文