2017-11-30 05:12:11 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO KDE/extra-cmake-modules
|
2021-05-21 16:30:43 +08:00
|
|
|
REF v5.81.0
|
|
|
|
SHA512 562e99f3368ec5c834dbcbfb055c06da3e3302ac8e03d5d71be9f2fc682bbb02836c009c41777a7f90e4d6d3a4b13412aea29fdba985588b7d59e2dc59c9beb2
|
2017-11-30 05:12:11 +08:00
|
|
|
HEAD_REF master
|
2017-03-30 04:57:43 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-08-01 04:01:02 +08:00
|
|
|
PREFER_NINJA
|
2019-12-21 04:21:51 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_HTML_DOCS=OFF
|
|
|
|
-DBUILD_MAN_DOCS=OFF
|
|
|
|
-DBUILD_QTHELP_DOCS=OFF
|
|
|
|
-DBUILD_TESTING=OFF
|
2017-03-30 04:57:43 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
# Remove debug files
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
|
|
|
|
2021-04-13 01:15:11 +08:00
|
|
|
file(COPY ${CURRENT_PORT_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
2017-03-30 04:57:43 +08:00
|
|
|
# Handle copyright
|
2019-12-21 04:21:51 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING-CMAKE-SCRIPTS DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2017-03-30 04:57:43 +08:00
|
|
|
|
|
|
|
# Allow empty include directory
|
|
|
|
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|