vcpkg/ports/libdatrie/usage
Kai Pastor cec1fbea37
[libdatrie] Update and fixes (#23681)
* Libdatrie fixes

* Libdatrie fixes and update to v0.2.13

* Add usage

* Create feature 'tool'

* Update versions

* Install pkg-config module

* Update versions

Co-authored-by: Thomas Heinrichs <46387399+Thomas1664@users.noreply.github.com>
2022-03-21 19:38:10 -07:00

14 lines
528 B
Plaintext

The package libdatrie can be used via CMake:
find_path(LIBDATRIE_INCLUDE_DIR datrie/trie.h)
find_library(LIBDATRIE_LIBRARY NAMES datrie)
target_include_directories(main PRIVATE "${LIBDATRIE_INCLUDE_DIR}")
target_link_libraries(main PRIVATE "${LIBDATRIE_LIBRARY}")
The package libdatrie can be imported via CMake FindPkgConfig module:
include(FindPkgConfig)
pkg_check_modules(LIBDATRIE REQUIRED IMPORTED_TARGET datrie-0.2)
target_link_libraries(main PRIVATE PkgConfig::LIBDATRIE)