-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create ros-noetic-rqt-image-view.patch
- Loading branch information
1 parent
436eec1
commit 8635f12
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index ba4ec83..ea96ab1 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -2,10 +2,9 @@ cmake_minimum_required(VERSION 3.0.2) | ||
|
||
project(rqt_image_view) | ||
|
||
-add_compile_options(-std=c++11) | ||
- | ||
# Load catkin and all dependencies required for this package | ||
find_package(catkin REQUIRED COMPONENTS rqt_gui rqt_gui_cpp image_transport sensor_msgs geometry_msgs cv_bridge) | ||
+find_package(OpenCV) | ||
|
||
if("${qt_gui_cpp_USE_QT_MAJOR_VERSION} " STREQUAL "5 ") | ||
find_package(Qt5Widgets REQUIRED) | ||
@@ -60,7 +59,7 @@ set(CMAKE_CURRENT_BINARY_DIR "${_cmake_current_binary_dir}") | ||
|
||
include_directories(${rqt_image_view_INCLUDE_DIRECTORIES} ${catkin_INCLUDE_DIRS}) | ||
add_library(${PROJECT_NAME} ${rqt_image_view_SRCS} ${rqt_image_view_MOCS} ${rqt_image_view_UIS_H}) | ||
-target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES}) | ||
+target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${OpenCV_LIBRARIES}) | ||
if("${qt_gui_cpp_USE_QT_MAJOR_VERSION} " STREQUAL "5 ") | ||
target_link_libraries(${PROJECT_NAME} Qt5::Widgets) | ||
else() |