vcpkg/ports/mongo-c-driver/usage
2019-07-07 00:19:17 -07:00

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})