CMakeLists.txt 1.01 KB
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
6
7
8
9
10
11
12
13
14
## LAAS cmake submodule part
set(PROJECT_DESCRIPTION "Dynamic graph bridge msgs ")
set(PROJECT_NAME dynamic_graph_bridge_msgs)
set(PROJECT_URL "")

set(CXX_DISABLE_WERROR False)
set(CUSTOM_HEADER_DIR dynamic_graph_bridge_msgs)
include(cmake/base.cmake)
include(cmake/ros.cmake)
include(cmake/GNUInstallDirs.cmake)

olivier stasse's avatar
olivier stasse committed
15
cmake_policy(SET CMP0007 OLD)
olivier stasse's avatar
olivier stasse committed
16

olivier stasse's avatar
olivier stasse committed
17
SETUP_PROJECT()
olivier stasse's avatar
olivier stasse committed
18
19
#List to make rest of code more readable
set( MESSAGE_DEPENDENCIES std_msgs )
Pierre Gergondet's avatar
Pierre Gergondet committed
20

olivier stasse's avatar
olivier stasse committed
21
22
23
24
25
#Declare build dependencies
find_package(catkin REQUIRED
COMPONENTS
message_generation
${MESSAGE_DEPENDENCIES} )
Pierre Gergondet's avatar
Pierre Gergondet committed
26

olivier stasse's avatar
olivier stasse committed
27
28
#Add message files
add_message_files(DIRECTORY msg FILES Matrix.msg Vector.msg)
Pierre Gergondet's avatar
Pierre Gergondet committed
29

olivier stasse's avatar
olivier stasse committed
30
31
32
33
34
35
36
37
38
39
#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
40
41
42
43
catkin_package( CATKIN_DEPENDS message_runtime ${MESSAGE_DEPENDENCIES} )


SETUP_PROJECT_FINALIZE()