vcpkg/ports/mongo-c-driver/usage
Billy O'Neal cd54580d1f
[libbson, mongo-c-driver] Convert to vcpkg.json. (#20039)
* Fixes source writes rather than using DISABLE_PARALLEL_CONFIGURE
* Fixes to use modern vcpkg helpers.
* Fixes to install to the correct include path rather than moving the resulting includes after the fact.
* Remove do-nothign renames.
* Fixes to make static cmake configs find the correct bits.
2021-09-08 11:56:06 -07:00

8 lines
322 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})