forked from ros-simulation/stage_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
66 lines (53 loc) · 1.39 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
cmake_minimum_required(VERSION 2.8.3)
project(stage_ros)
find_package(catkin REQUIRED
COMPONENTS
geometry_msgs
nav_msgs
roscpp
sensor_msgs
std_msgs
std_srvs
tf
)
find_package(Boost REQUIRED COMPONENTS system thread)
find_package(stage REQUIRED PATHS /home/scifiswapnil/stage-buildqcc/)
include_directories(
${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${STAGE_INCLUDE_DIRS}
)
catkin_package()
# Declare a cpp executable
add_executable(stageros src/stageros.cpp)
set(${PROJECT_NAME}_extra_libs "")
if(UNIX AND NOT APPLE)
set(${PROJECT_NAME}_extra_libs dl)
endif()
target_link_libraries(stageros
${catkin_LIBRARIES}
${Boost_LIBRARIES}
${STAGE_LIBRARIES}
${${PROJECT_NAME}_extra_libs}
)
if(catkin_EXPORTED_TARGETS)
add_dependencies(stageros ${catkin_EXPORTED_TARGETS})
endif()
## Install
install(PROGRAMS scripts/upgrade-world.sh
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(TARGETS stageros
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY rviz
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
install(DIRECTORY world
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
## Tests
if(CATKIN_ENABLE_TESTING)
find_package(rostest REQUIRED)
add_rostest(test/hztest.xml)
add_rostest(test/intensity_test.xml)
endif()