02 2022 档案

摘要:1安装和测试 Now we can start adding install rules and testing support to our project. 1.1安装规则 install install用于指定在安装时运行的规则。它可以用来安装很多内容,可以包括目标二进制、动态库、静态库以及文 阅读全文
posted @ 2022-02-10 18:49 绍荣 阅读(65) 评论(0) 推荐(0) 编辑
摘要:1添加库的使用规范 2具体脚本 2.1target_compile_definitions() 向工程中加入预处理定义 语法: target_compile_definitions(<target> <INTERFACE|PUBLIC|PRIVATE> [items1...] [<INTERFACE 阅读全文
posted @ 2022-02-10 14:20 绍荣 阅读(82) 评论(0) 推荐(1) 编辑
摘要:参考 参考 1完整代码 |-step2 |--CMakeLists.txt |--tutorial.cxx |--MathFunctions |--CMakeLists.txt |--mysqrt.h |--mysqrt.cxx |--CMakeLists.txt cmake_minimum_req 阅读全文
posted @ 2022-02-10 12:22 绍荣 阅读(86) 评论(0) 推荐(0) 编辑
摘要:1.history 语法: history(选项)(参数) 选项: N: 显示历史记录中最近的N个记录; -c:清空当前历史命令; -a:将历史命令缓冲区中命令写入历史命令文件中; -r:将历史命令文件中的命令读入当前历史命令缓冲区; -w:将当前历史命令缓冲区命令写入历史命令文件中; -d:删除历 阅读全文
posted @ 2022-02-07 15:00 绍荣 阅读(63) 评论(0) 推荐(0) 编辑
摘要:2022.2.7 - 2022.2.9 官网 参考1 参考2 1基本代码 在CMakeLists.txt中,填写如下代码: cmake_minimum_required(VERSION 3.10) # set the project name project(Tutorial) # add the 阅读全文
posted @ 2022-02-07 12:23 绍荣 阅读(56) 评论(0) 推荐(0) 编辑