-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
60 lines (48 loc) · 1.45 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
cmake_minimum_required(VERSION 3.0)
project(robot_monitoring VERSION 1.0)
# std c++14 flags
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# avoid installing catkin-related files
set(CATKIN_BUILD_BINARY_PACKAGE TRUE)
# find required packages
find_package(catkin REQUIRED COMPONENTS
roscpp
rviz
roslib
)
# set qt to automatically run MOC and RCC pre-compilers
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
# give option to user to give custom qt path
set(QT5_PATH "" CACHE PATH "Path to QT")
set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH};${QT5_PATH}")
# find qt
find_package(Qt5UiTools REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Charts QUIET)
find_package(Qt5PrintSupport REQUIRED)
# robotinterfaceros is needed just to construct
# xbotinterface from ros parameters (could be avoided)
find_package(RobotInterfaceROS REQUIRED)
include_directories(include/
src/
${RobotInterfaceROS_INCLUDE_DIRS})
# generate catkin package, but don't let it export
# any target
catkin_package(
INCLUDE_DIRS include
LIBRARIES robot_monitoring
)
add_subdirectory(src/robot_monitoring/)
add_subdirectory(src/chart/)
add_subdirectory(src/joint_state_gui/)
add_subdirectory(src/joint_sliders/)
add_subdirectory(src/imu)
add_subdirectory(src/ft)
add_subdirectory(src/rviz/)
add_subdirectory(src/qcustomplot)
include(cmake/GenerateDeb.cmake)
install(DIRECTORY include/robot_monitoring
DESTINATION include)