forked from nrjl/lcm_to_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
76 lines (58 loc) · 1.56 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
cmake_minimum_required(VERSION 2.8.3)
project(lcm_to_ros)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
message_generation
)
SET(CMAKE_MODULE_PATH ${${PROJECT_NAME}_SOURCE_DIR}/cmake)
find_package(lcm REQUIRED)
if (LCM_FOUND)
include_directories(${LCM_INCLUDE_DIRS})
# add_subdirectory(src)
endif (LCM_FOUND)
################################################
## Declare ROS messages, services and actions ##
################################################
FILE(GLOB rosMsgFiles RELATIVE "${${PROJECT_NAME}_SOURCE_DIR}/msg"
"${${PROJECT_NAME}_SOURCE_DIR}/msg/*.msg")
FOREACH(rosMsg ${rosMsgFiles})
MESSAGE( STATUS "Processing message file: ${rosMsg}" )
add_message_files( FILES ${rosMsg})
ENDFOREACH(rosMsg)
generate_messages(
DEPENDENCIES
std_msgs
)
###################################
## catkin specific configuration ##
###################################
catkin_package(
# INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/${PROJECT_NAME}
# LIBRARIES lcm_to_ros
CATKIN_DEPENDS roscpp std_msgs message_runtime
# DEPENDS system_lib
)
###########
## Build ##
###########
# include_directories(include)
include_directories(
${${PROJECT_NAME}_SOURCE_DIR}
${catkin_INCLUDE_DIRS}
)
## Declare a C++ library
# add_library(lcm_to_ros
# src/${PROJECT_NAME}/lcm_to_ros.cpp
# )
add_subdirectory(src)
get_filename_component(_fullPath autosrc ABSOLUTE)
if(EXISTS ${_fullPath}/CMakeLists.txt)
add_subdirectory(autosrc)
endif(EXISTS ${_fullPath}/CMakeLists.txt)
#############
## Install ##
#############
#############
## Testing ##
#############