CMakeLists.txt 648 Bytes
Newer Older
olivier stasse's avatar
olivier stasse committed
1
2
cmake_minimum_required(VERSION 2.8.3)
project(dynamic_graph_bridge_msgs)
Pierre Gergondet's avatar
Pierre Gergondet committed
3

olivier stasse's avatar
olivier stasse committed
4
5
#List to make rest of code more readable
set( MESSAGE_DEPENDENCIES std_msgs )
Pierre Gergondet's avatar
Pierre Gergondet committed
6

olivier stasse's avatar
olivier stasse committed
7
8
9
10
11
#Declare build dependencies
find_package(catkin REQUIRED
COMPONENTS
message_generation
${MESSAGE_DEPENDENCIES} )
Pierre Gergondet's avatar
Pierre Gergondet committed
12

olivier stasse's avatar
olivier stasse committed
13
14
#Add message files
add_message_files(DIRECTORY msg FILES Matrix.msg Vector.msg)
Pierre Gergondet's avatar
Pierre Gergondet committed
15

olivier stasse's avatar
olivier stasse committed
16
17
18
19
20
21
22
23
24
25
26
#Add service files
add_service_files(DIRECTORY srv
FILES
RunCommand.srv
RunPythonFile.srv)

#And now generate the messages
generate_messages(DEPENDENCIES ${MESSAGE_DEPENDENCIES})

# Generate catkin/pkg-config import information
catkin_package( CATKIN_DEPENDS message_runtime ${MESSAGE_DEPENDENCIES} )