2

CMake集成GTest

 1 year ago
source link: https://xuranus.github.io/2022/06/27/CMake%E9%9B%86%E6%88%90gtest/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

第一次接触到较打的C++项目,项目由CMake构建,并使用GTest测试,而我之前对CMake的认知仅仅是Clion提供的自动创建和修改CMakeList.txt,对C++测试仅仅停留在写宏定义和测试用例,对LLT测试框架完全没有映像。搞懂项目的构建原理有利于尽快上手项目,于是打算在本文梳理一下CMake和GTest的基本用法,完整实现一个集成CMake和GTest的项目。

CMake

GTest


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK