Catkin_make与Cmake

经常的,在编译ROS相关的驱动组件时,碰到Cmake。眼熟了之后,探究一下同是编译命令的二者之间的关系。

Catkin_make与Cmake的联系已有非常多的文章叙述,这里就不再赘述,就简单的提一下。

书籍资料

  • CMake Practice

博客资料

  • https://blog.csdn.net/u013316124/article/details/53021448

catkin_make 实际和下面的指令是等效的

$ cd ~/catkin_ws
$ cd src
$ catkin_init_workspace
$ cd ..
$ mkdir build
$ cd build
$ cmake ../src -DCMAKE_INSTALL_PREFIX=../install -DCATKIN_DEVEL_PREFIX=../devel
$ make

猜你喜欢

转载自blog.csdn.net/qq_35904625/article/details/80918667