[libxml2] Display usage information

This commit is contained in:
Robert Schumacher 2018-04-17 16:15:06 -07:00
parent 3a3fa5cd8f
commit a95fbce456
2 changed files with 6 additions and 1 deletions

View File

@ -19,7 +19,7 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
# Handle copyright
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libxml2)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libxml2)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libxml2/COPYING ${CURRENT_PACKAGES_DIR}/share/libxml2/copyright)
vcpkg_copy_pdbs()

5
ports/libxml2/usage Normal file
View File

@ -0,0 +1,5 @@
The package libxml2 is compatible with built-in CMake targets:
find_package(LibXml2 REQUIRED)
target_include_directories(main PRIVATE ${LIBXML2_INCLUDE_DIR})
target_link_libraries(main PRIVATE ${LIBXML2_LIBRARIES})