Files
logos-protocol/cpp/logos-protocolConfig.cmake.in
T
Dario Lipicar 29afbac532 Extract the Logos protocol layer from logos-cpp-sdk (lp_* C ABI + protocol semver) (#2)
* Extract the Logos protocol layer from logos-cpp-sdk

Transports (plain TCP/TLS, qt_local, qt_remote/QRO, mock), token manager,
consumer core (LogosAPIClient/LogosAPIConsumer incl. the capability
auto-requestModule flow), ModuleProxy, the abstract LogosProviderObject
interface, and the canonical QVariant<->JSON conversion — now behind the
language-neutral lp_* C ABI (logos_protocol.h) carrying the protocol
semver (LOGOS_PROTOCOL_VERSION_*, lp_protocol_version()).

Bytes crossing the ABI use the lossless {"_bytes": base64url} tagging
(NUL-safe), matching the plain wire encoding.

Provider lp_* surface is compiled groundwork; serving lands with module
authoring.

* consumer: typed requestModule for the capability flow

Port of logos-cpp-sdk master f5a127dd ('use updated capability module',
cpp-sdk#85, Iuri Matias) — the touched files (logos_api_client.cpp,
logos_api_consumer.{h,cpp}) moved into this repo in the P1 extraction.
The capability auto-requestModule path now calls a typed std::string
helper on the consumer (which acquires the capability object directly)
instead of a stringly invokeRemoteMethod round-trip. 111/111 tests.
2026-06-12 18:59:01 -03:00

24 lines
974 B
CMake

@PACKAGE_INIT@
# logos-protocolConfig.cmake — consumed by `find_package(logos-protocol)`.
#
# Re-resolves every transitive dependency of liblogos_protocol before
# importing the target, so downstream consumers get OpenSSL / Boost /
# nlohmann_json / Qt6 wired into their own link line automatically.
# Without this, a consumer linking the static archive directly would
# see "undefined reference to SSL_CTX_*" / "DSO missing from command
# line" because a STATIC archive doesn't carry transitive link info.
include(CMakeFindDependencyMacro)
find_dependency(Qt6 REQUIRED COMPONENTS Core RemoteObjects)
# `system` for boost::system::error_code (Boost.Asio) — see the
# matching note in cpp/CMakeLists.txt next to target_link_libraries.
find_dependency(Boost REQUIRED COMPONENTS system)
find_dependency(OpenSSL REQUIRED)
find_dependency(nlohmann_json REQUIRED)
include("${CMAKE_CURRENT_LIST_DIR}/logos-protocolTargets.cmake")
check_required_components(logos-protocol)