-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
62 lines (46 loc) · 1.06 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
cmake_minimum_required(VERSION 2.8.3)
project(ltme01_driver)
add_compile_options(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
roscpp
sensor_msgs
)
###################################
## catkin specific configuration ##
###################################
catkin_package()
###########
## Build ##
###########
set(LTME01_SDK_DIR "dep/ltme01_sdk")
set(BUILD_SHARED_LIBS OFF)
add_subdirectory(${LTME01_SDK_DIR})
include_directories(
"${LTME01_SDK_DIR}/Sources/include"
${catkin_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/include
)
add_executable(${PROJECT_NAME}_node
src/lidar_driver.cpp
)
target_link_libraries(${PROJECT_NAME}_node
${catkin_LIBRARIES}
ltme01_sdk
)
#############
## Install ##
#############
install(PROGRAMS
scripts/create_udev_rules
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(TARGETS ${PROJECT_NAME}_node
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(FILES
ltme01.rules
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)