Andrew Stitcher created PROTON-2068:
---------------------------------------
Summary: Allow CMake builds using proton-c clients to import
targets
Key: PROTON-2068
URL: https://issues.apache.org/jira/browse/PROTON-2068
Project: Qpid Proton
Issue Type: Bug
Components: cpp-binding, proton-c
Reporter: Andrew Stitcher
"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):
{code:java}
project(example LANGUAGES CXX)
find_package(ProtonCpp REQUIRED)
add_executable(example example.cpp)
target_link_library(example Proton::cpp)
{code}
We should support and encourage this kind of use.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]