摘要: GTest and ROSTest GTest and ROSTest致谢前言为什么要学GTest科普好的测试框架应该是(软件测试思想)GTest 入门综述断言assertion创建一个test运行测试编写测试的main函数TOC 致谢 Linux 大棚 ROSTest 前言 为什么要学GTest 开源框架,完全免费 用得人多,项目多,比如ROS就用这个做测试,这是我学... 阅读全文
posted @ 2019-07-01 22:41 哈骑士 阅读(233) 评论(0) 推荐(0) 编辑
摘要: its time to do cmake right Enough preambles. Does this look familiar to you? find_package(Boost 1.55 COMPONENTS asio) list(APPEND INCLUDE_DIRS ${BOOST_INCLUDE_DIRS}) list(APPEND ... 阅读全文
posted @ 2019-07-01 22:39 哈骑士 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-07-01 22:37 哈骑士 阅读(527) 评论(0) 推荐(0) 编辑
摘要: New concept: "everything is a (self-contained) target". cd googletest mkdir build | cd cmake .. Anatomy of a CMake Project When writing your project configuration never assume to kn... 阅读全文
posted @ 2019-07-01 22:36 哈骑士 阅读(621) 评论(0) 推荐(0) 编辑
摘要: You need to use set instead of list to affect the variable in the parent scope.So replace your list command with:set(source_list ${source_list} ${file_path} PARENT_SCOPE) shareimprove this answeredite... 阅读全文
posted @ 2019-07-01 22:34 哈骑士 阅读(1536) 评论(0) 推荐(0) 编辑
摘要: git 设置shadowsocks上网代理为Git设置shadowsocks代理2017-08-23 其它 git shadowsocksGit 目前支持的三种协议 git://、ssh:// 和 http://,其代理配置各不相同: core.gitproxy 用于 git:// 协议,http.proxy 用于 http:// 协议,ssh:// 协议的代理需要配置 ssh 的 ProxyC... 阅读全文
posted @ 2019-07-01 22:33 哈骑士 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 如果clone的时候忘记改名了 要改三个地方 本来的文件夹名字 .gitmodules中的名字 .git/modules/.....名字 .git/config # 看样子还是不够,还是改回来吧!用默认的! https://git-scm.com/book/zh/v2/Git-%E5%B7%A5%E5%85%B7-%E5%AD%90%E6%A8%A1%E5%9D%97 clone cd .... 阅读全文
posted @ 2019-07-01 22:32 哈骑士 阅读(2930) 评论(0) 推荐(0) 编辑
摘要: 打印美化 set print pretty on 使用layout图形化界面 set print object on打印派生对象 -函数 向上或向下切换函数堆栈帧 用gdb调试程序时,当程序暂停后,可以用“ up n ”或“ down n ”命令向上或向下选择函数堆栈帧,其 中 n 是层数。以上面程序为例: 可以看到程序断住后,先执行“ fram... 阅读全文
posted @ 2019-07-01 22:31 哈骑士 阅读(447) 评论(0) 推荐(0) 编辑
摘要: cmake命令 list In CMake, a "list" is a string of items separated by semi-colons. For example: set(FOO "a") list(APPEND FOO "b") # now FOO="a;b" list(APPEND FOO "c") # now FOO="a;b;c" In CMake, a strin... 阅读全文
posted @ 2019-07-01 22:31 哈骑士 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 以前我用 VS2010 做开发,今年转到服务器开发。刚做的时候感觉不适应,后来慢慢就习惯了。不管是你说的大项目还是一般的项目(大项目也是有小模块堆积而成),平时用的基本上不会特别复杂,最多也不过线程堆栈切换而已。shell+vim+git+find+grep+收log,就这么几板斧,几十人维护数百万行code妥妥的。逻辑错误用log,内存错误用gdb,单元测试用gtest,编译器用clang,lo... 阅读全文
posted @ 2019-07-01 22:30 哈骑士 阅读(286) 评论(0) 推荐(0) 编辑