Statistics
| Branch: | Revision:

root / mikrokopter / arduino / CMakeLists.txt @ 58d82c77

History | View | Annotate | Download (1.07 KB)

1
cmake_minimum_required(VERSION 2.4.6)
2
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
3

    
4
# Set the build type.  Options are:
5
#  Coverage       : w/ debug symbols, w/o optimization, w/ code-coverage
6
#  Debug          : w/ debug symbols, w/o optimization
7
#  Release        : w/o debug symbols, w/ optimization
8
#  RelWithDebInfo : w/ debug symbols, w/ optimization
9
#  MinSizeRel     : w/o debug symbols, w/ optimization, stripped binaries
10
#set(ROS_BUILD_TYPE RelWithDebInfo)
11

    
12
rosbuild_find_ros_package(rosserial_arduino)
13
rosbuild_find_ros_package(arduino)
14
set(ARDUINO_SDK_PATH ${arduino_PACKAGE_PATH}/../../arduino-1.0)
15
set(ARDUINO_SDK_VERSION 1.0)
16
include(${rosserial_arduino_PACKAGE_PATH}/cmake_scripts/rosserial.cmake)
17

    
18
set(FIRMWARE_NAME arduino)
19

    
20
#include_directories(${ARDUINO_SDK_PATH}/hardware/arduino/variants/leonardo)
21
include_directories(${ARDUINO_SDK_PATH}/hardware/arduino/variants/standard)
22

    
23
#set(${FIRMWARE_NAME}_BOARD leonardo)
24
set(${FIRMWARE_NAME}_BOARD uno)
25
set(${FIRMWARE_NAME}_SRCS src/main.cpp)
26
set(${FIRMWARE_NAME}_PORT /dev/ttyACM0)
27
generate_ros_firmware(${FIRMWARE_NAME})