forked from jstiefel/qt5_ros_melodic_gui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
73 lines (58 loc) · 1.32 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
cmake_minimum_required(VERSION 2.8.3)
project(qt5_ros_melodic_gui)
add_definitions(-std=c++11 -fPIC -Wall -Wextra)
##########
# CATKIN #
##########
find_package(catkin_simple REQUIRED)
catkin_simple(ALL_DEPS_REQUIRED)
##################
# QT ENVIRONMENT #
##################
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
#set(CMAKE_AUTOUIC ON)
# non-ROS:
find_package(Qt5 COMPONENTS Core Gui Widgets)
############
# SECTIONS #
############
file(GLOB QT_FORMS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ui/*.ui)
file(GLOB QT_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} resources/*.qrc)
QT5_ADD_RESOURCES(QT_RESOURCES_CPP ${QT_RESOURCES})
QT5_WRAP_UI(QT_FORMS_HPP ${QT_FORMS})
include_directories(
${Qt5Core_INCLUDE_DIRS}
${Qt5Gui_INCLUDE_DIRS}
${Qt5Widgets_INCLUDE_DIRS}
)
###########
# SOURCES #
###########
set(QT_SOURCES
src/main.cpp
src/mainwindow.cpp
src/qnode.cpp
include/nav_ui/mainwindow.hpp
include/nav_ui/qnode.hpp
)
#############
# LIBRARIES #
#############
#cs_add_library(${PROJECT_NAME}
#
# )
############
# BINARIES #
############
cs_add_executable(nav_ui_node ${QT_SOURCES} ${QT_RESOURCES_CPP} ${QT_FORMS_HPP} ${QT_MOC_HPP})
target_link_libraries(nav_ui_node
# ${PROJECT_NAME}
Qt5::Core
Qt5::Widgets
)
##########
# EXPORT #
##########
cs_install()
cs_export()