-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
executable file
·113 lines (92 loc) · 2.71 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
cmake_minimum_required(VERSION 2.8.3)
project(interpreter_gui)
## Compile as C++11, supported in ROS Kinetic and newer
# add_compile_options(-std=c++11)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
roslib
)
#add_definitions(-DQT_NO_KEYWORDS)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Core REQUIRED)
find_package(Qt5Gui REQUIRED)
find_package(Qt5PrintSupport REQUIRED)
set(QT_LIBRARIES Qt5::Widgets)
set(QT_LIBRARIES Qt5::Core)
set(QT_LIBRARIES Qt5::Gui)
set(QT_LIBRARIES Qt5::PrintSupport)
catkin_package(
INCLUDE_DIRS include
# LIBRARIES interpreter_gui
CATKIN_DEPENDS
roscpp
std_msgs
roslib
# DEPENDS system_lib
)
link_directories(
${GTKMM_LIBRARY_DIRS} #es la interfaz C++ oficial para
#la popular biblioteca de interfaz gráfica GTK+.
${catkin_LIBRARY_DIRS}
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
include
${Qt5Core_INCLUDE_DIRS}
${Qt5Widgets_INCLUDE_DIRS}
${Qt5Widgets_INCLUDE_DIRS}
${Qt5PrintSupport_INCLUDE_DIRS}
${QT_INCLUDES}
${catkin_INCLUDE_DIRS}
${roscpp_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
)
include_directories (${PROJECT_SOURCE_DIR})
include_directories (${PROJECT_BINARY_DIR})
set (MyProject_src
src/main.cpp
src/codeeditor.cpp
src/completelistwidget.cpp
src/console.cpp
src/highlighter.cpp
src/mainwindow.cpp
src/qcustomplot.cpp
)
set (MyProjectLib_ui
ui/mainwindow.ui
)
set (MyProjectLib_hdr
include/codeeditor.h
include/completelistwidget.h
include/console.h
include/highlighter.h
include/mainwindow.h
include/ui_mainwindow.h
include/qcustomplot.h
)
set (MyProjectLib_qrc
image.qrc
)
QT5_WRAP_CPP(MyProjectLib_hdr_MOC ${MyProjectLib_hdr})
QT5_WRAP_UI(MyProjectLib_ui_MOC ${MyProjectLib_ui})
QT5_ADD_RESOURCES(MyProjectLib_qrc_MOC ${MyProjectLib_qrc})
add_executable(interpreter_gui ${MyProject_src} ${MyProjectLib_hdr_MOC} ${MyProjectLib_ui_MOC} ${MyProjectLib_qrc_MOC})
target_link_libraries(interpreter_gui
${QT_LIBRARIES} #Llamado QT Libraries
${catkin_LIBRARIES}
Qt5::Widgets
Qt5::Core
Qt5::Gui
${Boost_LIBRARIES}
)
add_definitions(-std=c++11
)