vcpkg/ports/pulsar-client-cpp/usage
Yunze Xu dc19823670
[pulsar-client-cpp] New port (#35579)
* [pulsar-client-cpp] New port

* Remove unnecessary link options

* Address review comments

- Use find_dependency instead of find_package
- Specify BUILD_DYNAMIC_LIB explicitly

* Fix the Windows build and linkage

* Fix dynamic library not built when VCPKG_LIBRARY_LINKAGE is dynamic on Windows

* Fix Linux and OSX failures

* Remove PULSAR_FORCE_DYNAMIC_LIBRARY and upgrade version to 3.4.2

* Reduce the changes to the upstream CMakeLists.txt

* Remove unused version

* Optimize finding and linking dependency and patch the header for static library

* Support multi-config generators

* Fix path for release libraries
2023-12-29 00:15:51 -08:00

5 lines
158 B
Plaintext

pulsar-client-cpp provides CMake targets:
find_package(unofficial-pulsar CONFIG REQUIRED)
target_link_libraries(main PRIVATE unofficial::pulsar::pulsar)