From 7f7933f26d373fc08af5dde0ac64a56aa2091f41 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Wed, 19 Oct 2016 18:27:23 +0200 Subject: [PATCH] Manually require Qt5Widgets library if we use Qt5. (#133) Might fix #119. --- cartographer_rviz/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/cartographer_rviz/CMakeLists.txt b/cartographer_rviz/CMakeLists.txt index 5c3057e..94a3299 100644 --- a/cartographer_rviz/CMakeLists.txt +++ b/cartographer_rviz/CMakeLists.txt @@ -44,6 +44,7 @@ if(rviz_QT_VERSION VERSION_LESS "5") else() message(STATUS "Using Qt5 based on the rviz_QT_VERSION: ${rviz_QT_VERSION}") find_package(Qt5 ${rviz_QT_VERSION} EXACT REQUIRED Core Widgets) + find_package(Qt5Widgets REQUIRED) set(QT_LIBRARIES Qt5::Widgets) endif() add_definitions(-DQT_NO_KEYWORDS)