forked from ros-drivers/vrpn_client_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
68 lines (55 loc) · 1.54 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
cmake_minimum_required(VERSION 2.8.3)
project(vrpn_client_ros)
find_package(catkin REQUIRED COMPONENTS geometry_msgs roscpp roslaunch roslint tf2_ros)
find_package(VRPN REQUIRED)
catkin_package(
INCLUDE_DIRS include
LIBRARIES vrpn_client_ros
CATKIN_DEPENDS geometry_msgs tf2_ros
DEPENDS VRPN
)
set_directory_properties(PROPERTIES COMPILE_OPTIONS "-std=c++11;-Wall")
include_directories(
include
${catkin_INCLUDE_DIRS}
${VRPN_INCLUDE_DIR}
)
add_library(vrpn_client_ros
src/vrpn_client_ros.cpp
)
target_link_libraries(vrpn_client_ros
${catkin_LIBRARIES}
${VRPN_LIBRARIES}
)
add_executable(vrpn_tracker_node
src/vrpn_tracker_node.cpp)
add_dependencies(vrpn_tracker_node vrpn_client_ros)
target_link_libraries(vrpn_tracker_node
vrpn_client_ros
${catkin_LIBRARIES}
)
add_executable(vrpn_client_node
src/vrpn_client_node.cpp)
add_dependencies(vrpn_client_node vrpn_client_ros)
target_link_libraries(vrpn_client_node
vrpn_client_ros
${catkin_LIBRARIES}
)
roslaunch_add_file_check(launch)
file(GLOB_RECURSE SOURCE_FILES src *.cpp)
file(GLOB_RECURSE HEADER_FILES include *.h)
roslint_cpp(
${SOURCE_FILES}
${HEADER_FILES}
)
install(TARGETS vrpn_client_ros vrpn_tracker_node vrpn_client_node
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
)
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)