vcpkg/ports/geos/usage
Kai Pastor f0b32c558a
[geos] Relocatable geos-config; dynamic builds on Unix (#17616)
* Provide geos-config, and fix dynamic builds on Unix

* x-add-version

* Fix debug suffix handling

* Update git-tree

* Don't build benchmarks

* Revise pc file and geos-config handling

Fixup pc files.
Add -lgeos to Libs.private to satisfy common usage requirement
(already present in geos-config).
Install executable geos-config into tools.
Rewrite geos-config relocatability as patch.

* Port to non-deprecated cmake functions

* Add usage

* Update git-tree
2021-05-26 13:29:02 -07:00

11 lines
324 B
Plaintext

The package geos provides CMake targets:
# C API (provides long-term ABI stability)
find_package(GEOS CONFIG REQUIRED)
target_link_libraries(main PRIVATE GEOS::geos_c)
# C++ API (will likely change across versions)
find_package(GEOS CONFIG REQUIRED)
target_link_libraries(main PRIVATE GEOS::geos)