2021-03-30 01:11:07 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO libtcod/libtcod
|
2022-01-19 05:55:44 +08:00
|
|
|
REF 1.20.1
|
|
|
|
SHA512 bef3751dd1b190769163ff7c188479fe100d425fa98d3f0f97a3a81045fe0f0c24690b64bcde29f7af1eb7fd34915371223146598b1f0cab173e69a78c1dfc76
|
2021-03-30 01:11:07 +08:00
|
|
|
HEAD_REF develop
|
2022-05-17 03:41:17 +08:00
|
|
|
PATCHES
|
|
|
|
stb-headers.patch
|
2021-03-30 01:11:07 +08:00
|
|
|
)
|
|
|
|
|
2021-05-07 08:42:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-03-30 01:11:07 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
-DCMAKE_INSTALL_INCLUDEDIR=${CURRENT_PACKAGES_DIR}/include
|
|
|
|
-DLIBTCOD_SDL2=find_package
|
|
|
|
-DLIBTCOD_ZLIB=find_package
|
|
|
|
-DLIBTCOD_GLAD=find_package
|
|
|
|
-DLIBTCOD_LODEPNG=find_package
|
|
|
|
-DLIBTCOD_UTF8PROC=vcpkg
|
|
|
|
-DLIBTCOD_STB=vcpkg
|
|
|
|
)
|
|
|
|
|
2021-05-07 08:42:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-03-30 01:11:07 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-05-07 08:42:04 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2021-03-30 01:11:07 +08:00
|
|
|
|
2021-05-07 08:42:04 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|