[xmlsec] Add cmake target exports (#10207)

* [xmlsec] Add cmake target exports

* Removed vcpkg_common_functions.
This commit is contained in:
SvenPStarFinanz 2020-02-29 06:50:01 +01:00 committed by GitHub
parent 0d8fb644a0
commit 50e689dbe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -105,11 +105,14 @@ else()
endif()
install(TARGETS libxmlsec libxmlsec-openssl
EXPORT xmlsecExport
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
install(EXPORT xmlsecExport FILE xmlsec-config.cmake DESTINATION share/xmlsec)
if(INSTALL_HEADERS_TOOLS)
file(GLOB PUBLIC_HEADERS
include/xmlsec/*.h

View File

@ -1,5 +1,5 @@
Source: xmlsec
Version: 1.2.29-1
Version: 1.2.29-2
Homepage: https://www.aleksey.com/xmlsec/
Description: XML Security Library is a C library based on LibXML2. The library supports major XML security standards.
Build-Depends: libxml2, openssl

View File

@ -1,5 +1,3 @@
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO lsh123/xmlsec
@ -21,6 +19,7 @@ vcpkg_configure_cmake(
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets()
file(INSTALL ${SOURCE_PATH}/Copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)