Re: [ros-users] Dependencies of a stack

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Brian Gerkey
Date:  
To: ros-users
Subject: Re: [ros-users] Dependencies of a stack
On Fri, Jul 16, 2010 at 11:08 AM, ibwood <> wrote:
>
> ok, why does my CMakeLists.txt file have an error with rospack (omnibot) on
> line 3?


> cmake_minimum_required(VERSION 2.4.6)
> include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
> rospack(omnibot)
> genmsg()


Because you're using a very very old version of the rosbuild API. You
should instead say:

> cmake_minimum_required(VERSION 2.4.6)
> include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
> rosbuild_init(omnibot)
> rosbuild_genmsg()


Out of curiosity, where did find the example that you started with?

    brian.