forked from GMahmoud/virtual_costmap_layer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (38 loc) · 1.46 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
# ##############################################################################
# Setup version
file(STRINGS ${CMAKE_SOURCE_DIR}/VERSION version)
message(STATUS "Read version from file: ${version}")
cmake_minimum_required(VERSION 3.5.1)
project(virtual_costmap_layer LANGUAGES C CXX VERSION ${version})
set(CMAKE_CXX_STANDARD 14)
set(CXX_STANDARD_REQUIRED ON)
# ##############################################################################
# Load and setup packages
find_package(catkin
REQUIRED
roscpp
costmap_2d
dynamic_reconfigure
custom_msgs
tf)
# ##############################################################################
# Generate messages and configurations
generate_dynamic_reconfigure_options(cfg/VirtualLayer.cfg)
# ##############################################################################
# Setup catkin packages
catkin_package(INCLUDE_DIRS
include
LIBRARIES
virtual_layer
CATKIN_DEPENDS
costmap_2d
dynamic_reconfigure
custom_msgs
tf
DEPENDS)
# ##############################################################################
# Generate library
include_directories(include ${catkin_INCLUDE_DIRS})
add_library(virtual_layer src/virtual_layer.cpp)
target_link_libraries(virtual_layer ${catkin_LIBRARIES})
add_dependencies(virtual_layer ${PROJECT_NAME}_gencfg)