You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Air_Ground_CEC/CMakeLists.txt

68 lines
1.4 KiB

3 years ago
cmake_minimum_required(VERSION 3.0.2)
project(Air_Ground_CEC)
## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++11)
3 years ago
3 years ago
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
cv_bridge
sensor_msgs
3 years ago
image_transport
)
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES Air_Ground_CEC
# CATKIN_DEPENDS roscpp
# DEPENDS system_lib
)
###########
## Build ##
###########
3 years ago
#set(OpenCV_DIR /usr/local/share/opencv4)
find_package(OpenCV REQUIRED)
3 years ago
find_package(Qt5 REQUIRED COMPONENTS Widgets )
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(SOURCES
3 years ago
src/include/qnode.hpp
src/include/joystick.h
3 years ago
src/include/dashboard.h
3 years ago
src/main/main.cpp
src/main/mainwindow.cpp
src/main/qnode.cpp
src/main/joystick.cpp
3 years ago
src/main/dashboard.cpp
3 years ago
src/ui/mainwindow.hpp
src/ui/mainwindow.ui
3 years ago
3 years ago
)
3 years ago
QT5_add_resources(qrc_Files src/resources/images.qrc)
3 years ago
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
include/Air_Ground_CEC
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
3 years ago
add_executable(Air_Ground_CEC ${SOURCES} ${qrc_Files})
3 years ago
target_link_libraries(Air_Ground_CEC
Qt5::Widgets
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
)