-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
48 lines (43 loc) · 1.15 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
cmake_minimum_required(VERSION 2.8.3)
project(rosserial_stm32f1_tutorials)
find_package(catkin REQUIRED COMPONENTS
rosserial_client
rosserial_stm32f1
std_msgs
)
catkin_package(
CATKIN_DEPENDS std_msgs
)
rosserial_generate_ros_lib(
PACKAGE rosserial_stm32f1
SCRIPT make_libraries
)
# Chatter tutorial
rosserial_configure_client(
DIRECTORY chatter
TOOLCHAIN_FILE ${ROSSERIAL_STM32_TOOLCHAIN}
)
rosserial_add_client_target(chatter chatter ALL)
rosserial_add_client_target(chatter chatter.bin)
rosserial_add_client_target(
chatter
flash
st-flash write ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_SHARE_DESTINATION}/chatter.bin 0x08000000
)
rosserial_add_client_target(
chatter
size
arm-none-eabi-size -A -d ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_SHARE_DESTINATION}/chatter
)
# FreeRTOS tutorial
rosserial_configure_client(
DIRECTORY freertos
TOOLCHAIN_FILE ${ROSSERIAL_STM32_TOOLCHAIN}
)
rosserial_add_client_target(freertos freertos ALL)
rosserial_add_client_target(freertos freertos.bin)
rosserial_add_client_target(
freertos
flash
st-flash write ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_SHARE_DESTINATION}/freertos.bin 0x08000000
)