Help: Update example Qt 5 find_package call to use COMPONENTS

This commit is contained in:
Marcus D. Hanwell 2016-11-01 12:44:34 -04:00 committed by Brad King
parent 876da11858
commit 4c802a326b
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ Qt 4 and Qt 5 may be used together in the same
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5 COMPONENTS Widgets REQUIRED)
add_executable(publisher publisher.cpp)
target_link_libraries(publisher Qt5::Widgets Qt5::DBus)