Manually require Qt5Widgets library if we use Qt5. ()

Might fix .
master
Holger Rapp 2016-10-19 18:27:23 +02:00 committed by GitHub
parent b8d9ac585e
commit 7f7933f26d
1 changed files with 1 additions and 0 deletions
cartographer_rviz

View File

@ -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)