aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/xmlsec/usage
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/xmlsec/usage
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/xmlsec/usage')
-rw-r--r--vcpkg/ports/xmlsec/usage17
1 files changed, 17 insertions, 0 deletions
diff --git a/vcpkg/ports/xmlsec/usage b/vcpkg/ports/xmlsec/usage
new file mode 100644
index 0000000..2192f4a
--- /dev/null
+++ b/vcpkg/ports/xmlsec/usage
@@ -0,0 +1,17 @@
+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)