mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 01:19:00 +08:00
8 lines
312 B
Plaintext
8 lines
312 B
Plaintext
The package mongo-c-driver is compatible with built-in CMake targets:
|
|
|
|
find_package(libmongoc-1.0 CONFIG REQUIRED)
|
|
|
|
target_include_directories(main PRIVATE ${MONGOC_INCLUDE_DIRS})
|
|
target_link_libraries(main PRIVATE ${MONGOC_LIBRARIES})
|
|
target_compile_definitions(main PRIVATE ${MONGOC_DEFINITIONS})
|