1
mirror of https://github.com/R2Northstar/NorthstarLauncher synced 2024-10-30 11:26:40 +01:00
NorthstarLauncher/cmake/Findminizip.cmake
Rémy Raes 13f2facdb6
Inital native code for verified mod auto-downloading (#545)
Allows client to download a mod archive from the Thunderstore API, and extract included mods in the remote mods folder of the current game profile.

Not all mods can be automatically downloaded, as it would cause some security issues, and Thunderstore mod name cannot be deduced from actual mod name: to be eligible to auto-downloading, a mod must appear in the list of verified mods.

Said list and complete mod verification procedure are described here: https://github.com/R2Northstar/VerifiedMods

Exposes two commands to test the feature:
- `fetch_verified_mods` retrieves verified mods list from the GitHub organization, and stores it locally;
- `download_mod` does the actual mod downloading/extraction job.
2023-11-03 16:32:41 +01:00

11 lines
262 B
CMake

if(NOT minizip_FOUND)
check_init_submodule(${PROJECT_SOURCE_DIR}/thirdparty/minizip)
set(MZ_LZMA OFF CACHE BOOL "Disable LZMA & XZ compression")
add_subdirectory(${PROJECT_SOURCE_DIR}/thirdparty/minizip minizip)
set(minizip_FOUND 1 PARENT_SCOPE)
endif()