vcpkg/ports/libtcod/portfile.cmake
Kyle Benesch c0b44ddb14
[libtcod] Update to 1.20.1 (#22524)
* [libtcod] Update to 1.20.1

* Current versions do not follow semantic versioning.

Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>

Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
2022-01-18 13:55:44 -08:00

29 lines
755 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO libtcod/libtcod
REF 1.20.1
SHA512 bef3751dd1b190769163ff7c188479fe100d425fa98d3f0f97a3a81045fe0f0c24690b64bcde29f7af1eb7fd34915371223146598b1f0cab173e69a78c1dfc76
HEAD_REF develop
)
vcpkg_cmake_configure(
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
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")