摘要: 1安装和测试 Now we can start adding install rules and testing support to our project. 1.1安装规则 install install用于指定在安装时运行的规则。它可以用来安装很多内容,可以包括目标二进制、动态库、静态库以及文 阅读全文
posted @ 2022-02-10 18:49 绍荣 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 1添加库的使用规范 2具体脚本 2.1target_compile_definitions() 向工程中加入预处理定义 语法: target_compile_definitions(<target> <INTERFACE|PUBLIC|PRIVATE> [items1...] [<INTERFACE 阅读全文
posted @ 2022-02-10 14:20 绍荣 阅读(67) 评论(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 绍荣 阅读(78) 评论(0) 推荐(0) 编辑