vcpkg/ports/charls/portfile.cmake

26 lines
652 B
CMake
Raw Normal View History

2016-12-07 19:30:12 +08:00
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO team-charls/charls
REF 2.1.0
SHA512 456539243d984ebe6afe1bbb7c9422e642cf0346d25d220126ad8a6d04e945c6c340ab3c2b73a7db4ec390ed6a52236e5c6e9ad6d14e8b78b701937810fb327d
HEAD_REF master
2016-12-07 19:30:12 +08:00
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
2016-12-07 19:30:12 +08:00
OPTIONS
-DCHARLS_BUILD_TESTS=OFF
-DCHARLS_BUILD_SAMPLES=OFF
2016-12-07 19:30:12 +08:00
)
vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
vcpkg_copy_pdbs()