Add missing OpenSFX and OpenMSX cmake downloads

This commit is contained in:
Ted John 2022-11-08 19:17:42 +00:00 committed by Gymnasiast
parent df0cc4224d
commit cd8f25f600
No known key found for this signature in database
GPG key ID: DBFFF47AB2CA3EDD

View file

@ -444,6 +444,26 @@ if (NOT MACOS_BUNDLE OR (MACOS_BUNDLE AND WITH_TESTS))
SHA1 ${OBJECTS_SHA1} SHA1 ${OBJECTS_SHA1}
)") )")
endif () endif ()
if (DOWNLOAD_OPENSFX)
install(CODE "
include(${ROOT_DIR}/cmake/download.cmake)
download_openrct2_zip(
ZIP_VERSION ${OPENSFX_VERSION}
DOWNLOAD_DIR \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/
ZIP_URL ${OPENSFX_URL}
SHA1 ${OPENSFX_SHA1}
)")
endif ()
if (DOWNLOAD_OPENMSX)
install(CODE "
include(${ROOT_DIR}/cmake/download.cmake)
download_openrct2_zip(
ZIP_VERSION ${OPENMSX_VERSION}
DOWNLOAD_DIR \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/
ZIP_URL ${OPENMSX_URL}
SHA1 ${OPENMSX_SHA1}
)")
endif ()
if (DOWNLOAD_REPLAYS) if (DOWNLOAD_REPLAYS)
# Checks if this version of the replays are already installed, updates if necessary # Checks if this version of the replays are already installed, updates if necessary
install(CODE " install(CODE "