vcpkg/ports/mongo-c-driver/usage

10 lines
380 B
Plaintext
Raw Normal View History

2019-07-07 15:19:17 +08:00
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})