mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 12:49:00 +08:00
d5dd03b545
* Update to 1.2.35 * vcpkg cmake config is unofficial * Update versions * Update to 1.2.36 * Update versions * Remove patch * Update versions
18 lines
814 B
Plaintext
18 lines
814 B
Plaintext
xmlsec can be imported via CMake FindPkgConfig module:
|
|
|
|
find_package(PkgConfig)
|
|
# For dynamic loading of xmlsec crypto library
|
|
pkg_check_modules(XMLSEC1 REQUIRED IMPORTED_TARGET xmlsec1)
|
|
target_link_libraries(main PRIVATE PkgConfig::XMLSEC1)
|
|
# For selecting the openssl crypto engine at link time
|
|
pkg_check_modules(XMLSEC1_OPENSSL REQUIRED IMPORTED_TARGET xmlsec1-openssl)
|
|
target_link_libraries(main PRIVATE PkgConfig::XMLSEC1_OPENSSL)
|
|
|
|
vcpkg provides proprietary CMake targets:
|
|
|
|
find_package(unofficial-xmlsec CONFIG REQUIRED)
|
|
# For dynamic loading of xmlsec crypto library
|
|
target_link_libraries(main PRIVATE unofficial::xmlsec::xmlsec1)
|
|
# For selecting the openssl crypto engine at link time
|
|
target_link_libraries(main PRIVATE unofficial::xmlsec::xmlsec1-openssl)
|