This repository has been archived by the owner on May 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
CMakeLists.txt
68 lines (56 loc) · 2.05 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(neo_kinematics_omnidrive)
set(CMAKE_CXX_STANDARD 11)
## By default build with code optimization and no debug info
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release"
CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel."
FORCE)
endif(NOT CMAKE_BUILD_TYPE)
find_package(catkin REQUIRED
COMPONENTS
cmake_modules
dynamic_reconfigure
roscpp
tf
neo_srvs
neo_msgs
neo_common
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
## dynamic reconfigure
#generate_dynamic_reconfigure_options(
# cfg/NeoPlanner.cfg
#)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS
dynamic_reconfigure
roscpp
tf
neo_srvs
neo_msgs
neo_common
)
add_executable(neo_omnidrive_node src/neo_omnidrive_node.cpp)
add_dependencies(neo_omnidrive_node ${catkin_EXPORTED_TARGETS})
target_link_libraries(neo_omnidrive_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_LIBRARIES})
add_executable(neo_omnidrive_simulation_node src/neo_omnidrive_simulation_node.cpp)
add_dependencies(neo_omnidrive_simulation_node ${catkin_EXPORTED_TARGETS})
target_link_libraries(neo_omnidrive_simulation_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_LIBRARIES})
add_executable(neo_omnidrive_socketcan src/neo_omnidrive_socketcan.cpp)
add_dependencies(neo_omnidrive_socketcan ${catkin_EXPORTED_TARGETS})
target_link_libraries(neo_omnidrive_socketcan ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_LIBRARIES})
add_executable(test_velocity_solver test/test_velocity_solver.cpp)
add_executable(test_omni_kinematics test/test_omni_kinematics.cpp)
install(TARGETS neo_omnidrive_node neo_omnidrive_socketcan
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}
)