vcpkg/ports/xlnt/portfile.cmake

30 lines
860 B
CMake
Raw Normal View History

include(vcpkg_common_functions)
2018-06-27 10:05:11 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO tfussell/xlnt
2018-08-24 19:07:38 +08:00
REF v1.3.0
SHA512 716b93a6138daf1e293980a3c26801bfd00aa713afdd9cbe9be672ccff8c86b69b26eb0f3e8259bd0844e04d0e6148b64467d7db6815c76ecf412715d506786f
2018-06-27 10:05:11 +08:00
HEAD_REF master
)
2016-12-04 07:30:37 +08:00
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
set(STATIC OFF)
2016-12-04 07:30:37 +08:00
else()
set(STATIC ON)
2016-12-04 07:30:37 +08:00
endif()
vcpkg_configure_cmake(
2018-06-27 10:05:11 +08:00
SOURCE_PATH ${SOURCE_PATH}
2016-12-04 07:30:37 +08:00
OPTIONS -DTESTS=OFF -DSAMPLES=OFF -DBENCHMARKS=OFF -DSTATIC=${STATIC}
)
vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
2017-11-01 18:03:33 +08:00
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/man)
2018-06-27 10:05:11 +08:00
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/xlnt RENAME copyright)
2016-12-04 07:30:37 +08:00
vcpkg_copy_pdbs()