Skip to content

Commit

Permalink
Create ros-noetic-rqt-gui-cpp.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Fischer authored Jan 22, 2023
1 parent 8635f12 commit 7922744
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions patch/ros-noetic-rqt-gui-cpp.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c352f670..40f28c35 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,7 +10,8 @@ catkin_package(

include_directories(include ${catkin_INCLUDE_DIRS})

-find_package(Qt5Widgets REQUIRED)
+find_package(Qt5 COMPONENTS Widgets REQUIRED)
+find_package(Boost COMPONENTS filesystem REQUIRED)

SET(rqt_gui_cpp_SRCS
src/rqt_gui_cpp/nodelet_plugin_provider.cpp
@@ -24,7 +25,7 @@ set(rqt_gui_cpp_HDRS
qt5_wrap_cpp(rqt_gui_cpp_MOCS ${rqt_gui_cpp_HDRS})

add_library(${PROJECT_NAME} ${rqt_gui_cpp_SRCS} ${rqt_gui_cpp_MOCS})
-target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} Qt5::Widgets)
+target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} Qt5::Widgets ${Boost_LIBRARIES})

if(APPLE)
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")

0 comments on commit 7922744

Please sign in to comment.