mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-22 21:17:49 +08:00
5a8ff0088a
* Update mingw support expressions * Update versions * Use pkg-config for complete libgcrypt dependencies * Remove crypto from default features Align with CMake build system defaults. * Drop unused liblzma dependency * Update versions * Skip installation of docs * Update versions * Restructure patches * Update versions * CI [skip actions] * Revise libxml2 wrapper * Omit CONFIG from find_package(LibXml2) * Test libxml2 with, and fix for, CMake 3.7 * Update versions * More libxml2 wrapper changes * libxslt gcrypt variable name changes * Install usage * Trim portfile * [openscap] Use vcpkg pkg-config database * [openscap] Unbreak find_package(Threads) * Update versions * Update CI baseline * REQUIRED is a literal * Update versions * Always load libxml2 config instead of find module [skip actions] * [libxmlmm] Fix linking to libxml2 libxml2 needs iconv include dir on Windows. * [libxmlmm] License field and processing * [libxmlmm] Export unofficial CMake config * [libxmlmm] Change target prefix, not global default * Revert cmake-user changes * Set LIBXML2_FOUND * Update versions * Fix xslt-config * Update versions * Adjust tidy-html5 * Update versions Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
61 lines
1.3 KiB
CMake
61 lines
1.3 KiB
CMake
cmake_minimum_required(VERSION 3.8)
|
|
project(libxmlmm CXX)
|
|
|
|
find_package(LibXml2 REQUIRED)
|
|
|
|
set(HEADERS_LIBXMLMM
|
|
libxmlmm/Attribute.h
|
|
libxmlmm/CData.h
|
|
libxmlmm/Comment.h
|
|
libxmlmm/Content.h
|
|
libxmlmm/defines.h
|
|
libxmlmm/Document.h
|
|
libxmlmm/Element.h
|
|
libxmlmm/exceptions.h
|
|
libxmlmm/libxmlmm.h
|
|
libxmlmm/LibXmlSentry.h
|
|
libxmlmm/Node.h
|
|
libxmlmm/ProcessingInstruction.h
|
|
libxmlmm/Text.h
|
|
libxmlmm/utils.h
|
|
)
|
|
|
|
set(SOURCES_LIBXMLMM
|
|
libxmlmm/Attribute.cpp
|
|
libxmlmm/CData.cpp
|
|
libxmlmm/Comment.cpp
|
|
libxmlmm/Content.cpp
|
|
libxmlmm/Document.cpp
|
|
libxmlmm/Element.cpp
|
|
libxmlmm/LibXmlSentry.cpp
|
|
libxmlmm/Node.cpp
|
|
libxmlmm/ProcessingInstruction.cpp
|
|
libxmlmm/Text.cpp
|
|
libxmlmm/utils.cpp
|
|
)
|
|
|
|
add_library(libxmlmm ${SOURCES_LIBXMLMM})
|
|
target_link_libraries (libxmlmm PUBLIC LibXml2::LibXml2)
|
|
|
|
set_target_properties(libxmlmm PROPERTIES
|
|
CXX_STANDARD 17
|
|
PUBLIC_HEADER "${HEADERS_LIBXMLMM}"
|
|
PREFIX ""
|
|
)
|
|
|
|
target_include_directories(libxmlmm PUBLIC
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/libxmlmm>
|
|
$<INSTALL_INTERFACE:include/libxmlmm>)
|
|
|
|
install(TARGETS libxmlmm
|
|
EXPORT unofficial-libxmlmm-targets
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
PUBLIC_HEADER DESTINATION include/libxmlmm
|
|
)
|
|
install(EXPORT unofficial-libxmlmm-targets
|
|
NAMESPACE unofficial::libxmlmm::
|
|
DESTINATION share/unofficial-libxmlmm
|
|
)
|