vcpkg/ports/mongo-c-driver/usage

5 lines
215 B
Plaintext
Raw Normal View History

mongo-c-driver provides CMake targets:
find_package(mongoc-1.0 CONFIG REQUIRED)
target_link_libraries(main PRIVATE $<IF:$<TARGET_EXISTS:mongo::mongoc_shared>,mongo::mongoc_shared,mongo::mongoc_static>)