vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO libtcod/libtcod REF 1.22.2 SHA512 c02b6bb205f610416ea6cd9bdeb89a6976141e03a2cd2c44838f0d35edf2544e61af86d2ba904c6a913bbc3754592eed6063b732277bede55b79ffe3b983ee4d HEAD_REF main ) vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS INVERTED_FEATURES "png" CMAKE_DISABLE_FIND_PACKAGE_lodepng-c "sdl" CMAKE_DISABLE_FIND_PACKAGE_SDL2 "sdl" CMAKE_DISABLE_FIND_PACKAGE_GLAD "threads" CMAKE_DISABLE_FIND_PACKAGE_Threads "zlib" CMAKE_DISABLE_FIND_PACKAGE_ZLIB ) 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=find_package ) vcpkg_cmake_install() vcpkg_copy_pdbs() vcpkg_cmake_config_fixup() file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")