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

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)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
cv_bridge
sensor_msgs
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 ##
###########
#set(OpenCV_DIR /usr/local/share/opencv4)
find_package(OpenCV REQUIRED)
find_package(Qt5 REQUIRED COMPONENTS Widgets )
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(SOURCES
src/include/qnode.hpp
src/include/joystick.h
src/include/dashboard.h
src/main/main.cpp
src/main/mainwindow.cpp
src/main/qnode.cpp
src/main/joystick.cpp
src/main/dashboard.cpp
src/ui/mainwindow.hpp
src/ui/mainwindow.ui
)
QT5_add_resources(qrc_Files src/resources/images.qrc)
## 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}
)
add_executable(Air_Ground_CEC ${SOURCES} ${qrc_Files})
target_link_libraries(Air_Ground_CEC
Qt5::Widgets
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
)