mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 22:29:08 +08:00
7 lines
305 B
Plaintext
7 lines
305 B
Plaintext
|
The package libbson is compatible with built-in CMake targets:
|
||
|
|
||
|
find_package(libbson-1.0 CONFIG REQUIRED)
|
||
|
target_include_directories(main PRIVATE ${BSON_INCLUDE_DIRS})
|
||
|
target_link_libraries(main PRIVATE ${BSON_LIBRARIES})
|
||
|
target_compile_definitions(main PRIVATE ${BSON_DEFINITIONS})
|