Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8.0
-
None
-
77a13c158 (dev)
Description
UsingĀ
\qtcmakepackage Foo
in a module doc will result in a CMake usage information like
find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core)
There seems to be no way to customize this for usage in a non-Qt project. For example in KDE we obviously don't want to use Qt6 but rather KF6 (or something else entirely), e.g.
find_package(KF6 REQUIRED COMPONENTS CoreAddons) target_link_libraries(mytarget PRIVATE KF6::CoreAddons)
or
find_package(KF6 REQUIRED COMPONENTS KIO) target_link_libraries(mytarget PRIVATE KF6::KIOCore)
or
find_package(Plasma REQUIRED) target_link_libraries(mytarget PRIVATE Plasma::PlasmaQuick)
Attachments
For Gerrit Dashboard: QTBUG-128301 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
585144,4 | QDoc: Long live \cmakepackage, \cmakecomponent, and \cmaketargetitem! | dev | qt/qttools | Status: MERGED | +2 | 0 |