forked from ros-drivers/sicktoolbox_wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
79 lines (63 loc) · 2.55 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
75
76
77
78
79
cmake_minimum_required(VERSION 2.8.3)
project(sicktoolbox_wrapper)
find_package(catkin REQUIRED COMPONENTS roscpp sensor_msgs sicktoolbox rosconsole diagnostic_updater)
## System dependencies are found with CMake's conventions
#find_package(Threads)
###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
INCLUDE_DIRS
LIBRARIES
CATKIN_DEPENDS roscpp sensor_msgs sicktoolbox rosconsole diagnostic_updater
DEPENDS
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(${catkin_INCLUDE_DIRS})
add_executable(sickld ros/sickld/sickld.cpp)
target_link_libraries(sickld ${catkin_LIBRARIES})
add_executable(sicklms ros/sicklms/sicklms.cpp)
target_link_libraries(sicklms ${catkin_LIBRARIES})
add_executable(print_scans standalone/print_scans.cpp)
target_link_libraries(print_scans ${catkin_LIBRARIES})
add_executable(time_scans standalone/time_scans.cpp)
target_link_libraries(time_scans ${catkin_LIBRARIES})
add_executable(log_scans standalone/log_scans.cpp)
target_link_libraries(log_scans ${catkin_LIBRARIES})
#############
## Install ##
#############
# all install targets should use catkin DESTINATION variables
# See http://ros.org/doc/groovy/api/catkin/html/adv_user_guide/variables.html
## Mark executable scripts (Python etc.) for installation
## in contrast to setup.py, you can choose the destination
# install(PROGRAMS
# scripts/my_python_script
# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
# )
## Mark executables and/or libraries for installation
install(TARGETS sickld sicklms print_scans time_scans
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
## Mark cpp header files for installation
#install(DIRECTORY include/${PROJECT_NAME}/
# DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
# FILES_MATCHING PATTERN "*.hh"
# PATTERN ".svn" EXCLUDE
#)
## Mark other files for installation (e.g. launch and bag files, etc.)
install(FILES
sick_test.vcg
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)