Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-128301

Custom CMake usage information for non-Qt projects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.9.0 FF
    • 6.8.0
    • Build tools: qdoc
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            nicolasfella_kde Nicolas Fella
            nicolasfella_kde Nicolas Fella
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes