31 lines
793 B
CMake
Executable File
31 lines
793 B
CMake
Executable File
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO libtcod/libtcod
|
|
REF 1.20.1
|
|
SHA512 bef3751dd1b190769163ff7c188479fe100d425fa98d3f0f97a3a81045fe0f0c24690b64bcde29f7af1eb7fd34915371223146598b1f0cab173e69a78c1dfc76
|
|
HEAD_REF develop
|
|
PATCHES
|
|
stb-headers.patch
|
|
)
|
|
|
|
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")
|