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

Allow CMake builds using proton-c clients to import targets

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • proton-c-0.29.0
    • cpp-binding, proton-c
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: