forked from personalrobotics/k2_client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (39 loc) · 1.22 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(k2_client)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/Modules/")
find_package(catkin REQUIRED
COMPONENTS roscpp rospy std_msgs cv_bridge image_transport camera_info_manager message_generation)
find_package(Jsoncpp REQUIRED)
add_message_files(
FILES
Activities.msg
Appearance.msg
Audio.msg
Body.msg
BodyArray.msg
Expressions.msg
JointOrientationAndType.msg
JointPositionAndState.msg
Lean.msg
)
generate_messages(DEPENDENCIES std_msgs geometry_msgs)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS roscpp std_msgs cv_bridge image_transport camera_info_manager message_runtime
DEPENDS Jsoncpp
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${JSONCPP_INCLUDE_DIR}
)
file(GLOB_RECURSE HEADERS include/${PROJECT_NAME}/*.h)
file(GLOB_RECURSE SOURCES src/*.cpp)
include_directories(${includeFolders})
foreach(ITEM ${SOURCES})
get_filename_component(filename ${ITEM} NAME_WE)
add_executable(${filename} ${HEADERS} ${ITEM})
target_link_libraries(${filename} ${catkin_LIBRARIES})
target_link_libraries(${filename} ${JSONCPP_LIBRARY})
add_dependencies(${filename} ${PROJECT_NAME}_gencpp)
endforeach()