7.cmake使用vcpkg链接gtest库
gtest
1.windows上使用vcpkg下载gtest动态库与静态库
1.gtest动态库
1 | .\vcpkg.exe install gtest:x64-windows |
2.下载安装git bash环境
2.cmake使用vcpkg管理的raylib库
1.项目结构
1 | │ build.sh |
2.test_example.cpp
1 |
|
3.CMakeLists.txt
1 | # 启用 CTest |
4.build.sh
文件编码为utf-8
1 | # 1. 创建并进入构建目录 |
使用git bash环境运行build.sh
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
