-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
69 lines (53 loc) · 1.38 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
cmake_minimum_required(VERSION 3.5.1)
project(subt_seed)
if(NOT WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -Wextra")
endif()
set (SUBT_MAJOR_VERSION 0)
set (SUBT_MINOR_VERSION 1)
set (SUBT_PATCH_VERSION 0)
set (SUBT_VERSION_FULL
${SUBT_MAJOR_VERSION}.${SUBT_MINOR_VERSION}.${SUBT_PATCH_VERSION})
find_package(catkin REQUIRED
COMPONENTS
message_generation
subt_ign
roscpp
)
### find_package(gazebo REQUIRED)
catkin_package(
CATKIN_DEPENDS message_runtime
)
########################
## Message generation ##
########################
# Add here SubT ROS messages.
###########
## Build ##
###########
include_directories(
${catkin_INCLUDE_DIRS}
${GAZEBO_INCLUDE_DIRS}
)
link_directories(
${GAZEBO_LIBRARY_DIRS}
)
## Declare a C++ executable
add_executable(subt_seed_node src/subt_seed_node.cc)
add_dependencies(subt_seed_node ${catkin_EXPORTED_TARGETS})
target_link_libraries(subt_seed_node ${catkin_LIBRARIES})
###########
## Tests ##
###########
#############
## Install ##
#############
# Install all the launch files
install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch)
# Mark executables and/or libraries for installation
install(TARGETS subt_seed_node
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)