vcpkg/ports/xmlsec/usage
Kai Pastor d5dd03b545
[xmlsec] Update, fix usage (#27470)
* Update to 1.2.35

* vcpkg cmake config is unofficial

* Update versions

* Update to 1.2.36

* Update versions

* Remove patch

* Update versions
2022-11-04 14:36:25 -07:00

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)