Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2068

Allow CMake builds using proton-c clients to import targets

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: proton-c-0.29.0
    • Component/s: cpp-binding, proton-c
    • Labels:
      None

      Description

      "New" style CMake  (actually not really new) allows the use of imported targets linked to the projects own targets to carry all the information needed to use the library and so is much simpler and more foolproof to use.

      This is like (a simple and complete example):

      project(example LANGUAGES CXX)
      find_package(ProtonCpp REQUIRED)
      add_executable(example example.cpp)
      target_link_library(example Proton::cpp)
      

      We should support and encourage this kind of use.

       

        Attachments

          Activity

            People

            • Assignee:
              astitcher Andrew Stitcher
              Reporter:
              astitcher Andrew Stitcher
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: