mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
[mongo-c-driver] Add usage (#7048)
This commit is contained in:
parent
8c64785e78
commit
78b21911b7
@ -1,5 +1,5 @@
|
||||
Source: mongo-c-driver
|
||||
Version: 1.14.0-2
|
||||
Version: 1.14.0-3
|
||||
Build-Depends: libbson, openssl (!windows), zlib
|
||||
Description: Client library written in C for MongoDB.
|
||||
Homepage: https://github.com/mongodb/mongo-c-driver
|
||||
|
@ -122,6 +122,8 @@ file(RENAME ${CURRENT_PACKAGES_DIR}/share/mongo-c-driver/libmongoc-${PORT_POSTFI
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libbson-1.0.pc ${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libbson-1.0.pc)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libbson-static-1.0.pc ${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libbson-static-1.0.pc)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/bson-1.0.lib ${CURRENT_PACKAGES_DIR}/lib/bson-1.0.lib)
|
||||
|
9
ports/mongo-c-driver/usage
Normal file
9
ports/mongo-c-driver/usage
Normal file
@ -0,0 +1,9 @@
|
||||
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})
|
Loading…
x
Reference in New Issue
Block a user