Add missing OpenSFX and OpenMSX cmake downloads

This commit is contained in:
Ted John authored and Gymnasiast committed 2022-11-12 12:04:11 +01:00
1 parent df0cc4224d
commit cd8f25f600
1 file changed
+20
+20
View File
@@ -444,6 +444,26 @@ if (NOT MACOS_BUNDLE OR (MACOS_BUNDLE AND WITH_TESTS))
SHA1 ${OBJECTS_SHA1}
)")
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)
# Checks if this version of the replays are already installed, updates if necessary
install(CODE "