Commit 1c52e651 authored by Thiago M. de C. Marques's avatar Thiago M. de C. Marques Committed by Brad King
Browse files

Help: Update example Qt 5 find_package call to add missing component

Running CMake on it caused the following error:

    error: Target "publisher" links to target "Qt5::DBus" but the target
    was not found.  Perhaps a find_package() call is missing for an
    IMPORTED target, or an ALIAS target is missing?

Add the missing DBus component.
parent 4c802a32
......@@ -29,7 +29,7 @@ Qt 4 and Qt 5 may be used together in the same
find_package(Qt5 COMPONENTS Widgets REQUIRED)
find_package(Qt5 COMPONENTS Widgets DBus REQUIRED)
add_executable(publisher publisher.cpp)
target_link_libraries(publisher Qt5::Widgets Qt5::DBus)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment