forked from ros-drivers/vrpn_client_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
66 lines (55 loc) · 1.53 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
cmake_minimum_required(VERSION 2.8.3)
project(vrpn_client_ros)
find_package(catkin REQUIRED COMPONENTS geometry_msgs roscpp 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}
SYSTEM ${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}
)
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}
)
if(CATKIN_ENABLE_TESTING)
find_package(roslaunch REQUIRED)
find_package(roslint REQUIRED)
roslint_cpp()
roslint_add_test()
roslaunch_add_file_check(launch)
endif()