mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 15:29:01 +08:00
10 lines
380 B
Plaintext
10 lines
380 B
Plaintext
|
The package mongo-c-driver is compatible with built-in CMake targets:
|
||
|
|
||
|
find_package(mongo-c-driver CONFIG REQUIRED)
|
||
|
target_include_directories(${project} PRIVATE ${MONGOC_INCLUDE_DIRS})
|
||
|
|
||
|
For use dynamic library:
|
||
|
target_link_libraries(${project} PRIVATE ${MONGOC_LIBRARIES})
|
||
|
For use static library:
|
||
|
target_link_libraries(${project} PRIVATE ${MONGOC_STATIC_LIBRARY})
|