-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
69 lines (52 loc) · 1.83 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 2.8.3)
project(rqt_marble)
# Load catkin and all dependencies required for this package
find_package(catkin REQUIRED COMPONENTS message_generation rqt_gui rqt_gui_cpp sensor_msgs)
find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED)
include(${QT_USE_FILE})
SET( CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};/usr/share/kde4/apps/cmake/modules/" )
find_package(Marble REQUIRED)
#catkin_python_setup()
add_message_files(FILES
RouteGps.msg
)
generate_messages(DEPENDENCIES sensor_msgs)
set(rqt_marble_HDRS
include/rqt_marble/marble_plugin.h
include/rqt_marble/bridge_ros_marble.h
)
set(rqt_marble_SRCS
src/rqt_marble/marble_plugin.cpp
src/rqt_marble/bridge_ros_marble.cpp
)
set(rqt_marble_UIS
resource/marble_plugin.ui
)
set(rqt_marble_INCLUDE_DIRECTORIES
include
${CMAKE_CURRENT_BINARY_DIR}
)
catkin_package(
INCLUDE_DIRS ${rqt_marble_INCLUDE_DIRECTORIES}
LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS message_runtime rqt_gui rqt_gui_cpp sensor_msgs
)
qt4_wrap_cpp(rqt_marble_MOCS ${rqt_marble_HDRS})
qt4_wrap_ui(rqt_marble_UIS_H ${rqt_marble_UIS})
include_directories(${rqt_marble_INCLUDE_DIRECTORIES} ${catkin_INCLUDE_DIRS} ${MARBLE_INCLUDE_DIR})
add_library(${PROJECT_NAME} ${rqt_marble_SRCS} ${rqt_marble_MOCS} ${rqt_marble_UIS_H})
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${MARBLE_LIBRARIES})
find_package(class_loader)
class_loader_hide_library_symbols(${PROJECT_NAME})
install(FILES plugin.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
install(TARGETS ${PROJECT_NAME}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})
install(DIRECTORY resource
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
install(PROGRAMS scripts/rqt_marble
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)