CMake
CMake的技术分享与实践分享
sxpsxp12
行成于思,业精于勤
展开
-
C++开发环境搭建-vscode
文章目录参考链接LinuxWindows参考链接https://code.visualstudio.com/docs/cpp/config-mingwhttps://code.visualstudio.com/docs/cpp/config-wslhttps://code.visualstudio.com/docs/editor/variables-referencehttps://ve...原创 2020-02-21 19:38:31 · 267 阅读 · 0 评论 -
CMake教程---构建安装包(第六课)
文章目录CMake教程版本号:3.16.3英文原文链接: https://cmake.org/cmake/help/latest/guide/tutorial/index.html#id2github示例代码 https://github.com/sxpsxp12/cmake-learning-exampes构建安装包的case是,我们想要把我们的项目分发给别人。我们可以提供不...原创 2020-02-21 19:27:34 · 368 阅读 · 0 评论 -
CMake教程---添加系统自检(第五课)
文章目录添加自检指定编译定义总结includetarget_compile_definitionsCMake教程版本号:3.16.3英文原文链接: https://cmake.org/cmake/help/latest/guide/tutorial/index.html#id2github示例代码 https://github.com/sxpsxp12/cmake-learning...原创 2020-02-21 19:26:18 · 577 阅读 · 0 评论 -
CMake教程---安装(第四课)
文章目录安装规则总结installCMake教程版本号:3.16.3英文原文链接: https://cmake.org/cmake/help/latest/guide/tutorial/index.html#id2github示例代码 https://github.com/sxpsxp12/cmake-learning-exampes现在我们可以为项目添加安装规则和测试支持了...原创 2020-02-21 19:25:15 · 280 阅读 · 0 评论 -
CMake教程---添加库的使用要求(第三课)
文章目录CMake教程版本号:3.16.3英文原文链接: https://cmake.org/cmake/help/latest/guide/tutorial/index.html#id2github示例代码 https://github.com/sxpsxp12/cmake-learning-exampes使用要求的添加,可以使我们更好得控制库或者可执行程序的链接,并且更好得...原创 2020-02-21 19:23:57 · 268 阅读 · 0 评论 -
CMake教程---添加库(第二课)
文章目录自定义库使用自定义库构建可选项总结add_library普通的库导入的库对象库别名库接口库add_subdirectorytarget_link_librariesoptionCMake教程版本号:3.16.3英文原文链接: https://cmake.org/cmake/help/latest/guide/tutorial/index.html#id2github示例代码...原创 2020-02-21 19:22:50 · 791 阅读 · 0 评论 -
CMake教程---开始CMake的学习(第一课)
文章目录开始添加版本号和配置的头文件指定C++标准构建项目总结cmake_minimum_requiredprojectadd_executableconfigure_filetarget_include_directoriesset设置普通变量设置缓冲变量设置环境变量CMake教程版本号:3.16.3英文原文链接: https://cmake.org/cmake/help/latest...原创 2020-02-21 19:21:19 · 852 阅读 · 0 评论