mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 22:29:08 +08:00
7432ae01e9
* [avro-cpp] Update to 1.11.1 * [avro-cpp] Update version file * [Avro-cpp] Add "licence" to port file Co-authored-by: MonicaLiu <110024546+MonicaLiu0311@users.noreply.github.com> * [Avro-cpp] Fix HEAD_REF branch (revert to master) * [avro-cpp] Update version file * [avro-cpp] Fix build 'test' feature, update version * [avro-cpp] Update version * [avro-cpp] Update 'usage' file and replace deprecated function * [avro-cpp] Update version * [avro-cpp] Update 'usage' file * [avro-cpp] Update version * [avro-cpp] Update 'usage' file * [avro-cpp] Update version Co-authored-by: MonicaLiu <110024546+MonicaLiu0311@users.noreply.github.com>
10 lines
563 B
Plaintext
10 lines
563 B
Plaintext
The package avro-cpp can be used from CMake via:
|
|
|
|
find_path(AVROCPP_INCLUDE_DIR avro/Encoder.hh)
|
|
find_library(AVROCPP_LIBRARY_DEBUG avrocpp PATH_SUFFIXES "debug/lib" REQUIRED)
|
|
get_filename_component(AVROCPP_ROOT_FIND_DIR ${AVROCPP_INCLUDE_DIR} DIRECTORY)
|
|
find_library(AVROCPP_LIBRARY_RELEASE avrocpp PATHS "${AVROCPP_ROOT_FIND_DIR}/lib/" REQUIRED NO_DEFAULT_PATH)
|
|
|
|
target_include_directories(main PRIVATE "${AVROCPP_INCLUDE_DIR}")
|
|
target_link_libraries(main PRIVATE optimized "${AVROCPP_LIBRARY_RELEASE}" debug "${AVROCPP_LIBRARY_DEBUG}")
|