forked from RPM-Robotics-Lab/file_player_complex_urban
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
133 lines (101 loc) · 2.4 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
cmake_minimum_required(VERSION 2.8.3)
project(file_player)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (NOT CMAKE_BUILD_TYPE)
set (CMAKE_BUILD_TYPE release)
endif ()
find_package(catkin REQUIRED cmake_modules
COMPONENTS
roscpp
rospy
std_msgs
geometry_msgs
message_generation
rosbag
image_transport
cv_bridge
dynamic_reconfigure
pcl_ros
pcl_conversions
pcl_msgs
irp_sen_msgs
camera_info_manager
tf
)
set(CMAKE_AUTOMOC ON)
find_package(Eigen REQUIRED)
#set (CMAKE_PREFIX_PATH /opt/Qt5.6.1/5.6/gcc_64/lib/cmake)
#find_package(Qt5Core)
find_package(Qt5Widgets)
find_package(Qt5Gui)
find_package(Qt5OpenGL)
add_message_files(
DIRECTORY msg
)
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
)
generate_dynamic_reconfigure_options(
cfg/file_player.cfg
#...
)
catkin_package(
INCLUDE_DIRS include
LIBRARIES
file_player
CATKIN_DEPENDS
roscpp rospy
std_msgs
geometry_msgs
message_runtime
image_transport
cv_bridge
dynamic_reconfigure
pcl_ros
pcl_conversions
pcl_msgs
irp_sen_msgs
camera_info_manager
tf
DEPENDS
Eigen
)
set (SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
set (File_Player_QTLib_src ${SRC_DIR}/mainwindow.cpp ${SRC_DIR}/ROSThread.cpp)
set (File_Player_QTLib_hdr ${SRC_DIR}/mainwindow.h ${SRC_DIR}/ROSThread.h)
set (File_Player_QTLib_ui ${SRC_DIR}/mainwindow.ui)
set (File_Player_QTBin_src ${SRC_DIR}/main.cpp)
#find_package(GLEW REQUIRED)
#find_package(GLUT REQUIRED)
include_directories(
${catkin_INCLUDE_DIRS}
${file_player_INCLUDE_DIRS}
${SRC_DIR}
${Qt5Widgets_INCLUDE_DIRS}
${PROJECT_BINARY_DIR}
include
${Eigen_INCLUDE_DIRS}
)
#qt5_wrap_cpp(File_Player_QTLib_hdr_moc ${File_Player_QTLib_hdr})
qt5_wrap_ui (File_Player_QTLib_ui_moc ${File_Player_QTLib_ui})
qt5_add_resources(SHADER_RSC_ADDED ${SRC_DIR}/resources.qrc)
###########
## Build ##
###########
add_executable(file_player ${File_Player_QTLib_src} ${File_Player_QTLib_hdr} ${File_Player_QTBin_src} ${SHADER_RSC_ADDED} ${File_Player_QTLib_ui_moc})
add_dependencies(file_player file_player_msgs_generate_messages_cpp ${PROJECT_NAME}_gencfg)
add_dependencies(file_player ${catkin_EXPORTED_TARGETS})
target_link_libraries(file_player
${catkin_LIBRARIES}
${QT_LIBRARIES}
${OPENGL_LIBRARIES}
Qt5::Widgets
Qt5::Gui
Qt5::OpenGL
GL
${BOOST_CUSTOM_LIBS}
${Eigen_LIBRARIES}
)