root / joy / CMakeLists.txt @ master
History | View | Annotate | Download (526 Bytes)
1 |
cmake_minimum_required(VERSION 2.4.6) |
---|---|
2 |
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake) |
3 |
rosbuild_init() |
4 |
rosbuild_genmsg() |
5 |
|
6 |
# Look for <linux/joystick.h> |
7 |
include(CheckIncludeFiles) |
8 |
check_include_files(linux/joystick.h HAVE_LINUX_JOYSTICK_H) |
9 |
if(HAVE_LINUX_JOYSTICK_H) |
10 |
include_directories(msg/cpp) |
11 |
rosbuild_add_executable(joy_node joy_node.cpp) |
12 |
else(HAVE_LINUX_JOYSTICK_H) |
13 |
message("Warning: no <linux/joystick.h>; won't build joy node") |
14 |
endif(HAVE_LINUX_JOYSTICK_H) |
15 |
|
16 |
#rosbuild_add_pyunit(test/test_joy_msg_migration.py) |