space-game001/proj-android/app/jni/CMakeLists.txt
2026-01-11 12:08:48 +03:00

36 lines
1.1 KiB
CMake

cmake_minimum_required(VERSION 3.6)
project(GAME)
if(POLICY CMP0079)
cmake_policy(SET CMP0079 NEW)
endif()
# Сначала zlib
add_subdirectory("../../../thirdparty1/zlib-1.3.1" zlib-build)
set(PNG_STATIC ON CACHE BOOL "Build static library" FORCE)
set(PNG_SHARED OFF CACHE BOOL "Don't build shared library" FORCE)
set(PNG_TESTS OFF CACHE BOOL "Disable tests" FORCE)
set(PNG_TOOLS OFF CACHE BOOL "Disable tools" FORCE)
set(PNG_EXECUTABLES OFF CACHE BOOL "Disable executables" FORCE)
set(PNG_DEBUG OFF CACHE BOOL "Disable debug" FORCE)
set(SKIP_INSTALL_ALL ON CACHE BOOL "Skip installation" FORCE)
# Для Android отключаем оптимизации
set(PNG_HARDWARE_OPTIMIZATIONS OFF CACHE BOOL "Disable hardware optimizations" FORCE)
set(PNG_ARM_NEON "off" CACHE STRING "Disable ARM NEON" FORCE)
# Добавляем libpng
add_subdirectory("../../../thirdparty1/libpng-1.6.51" libpng-build)
# Затем SDL
add_subdirectory("../../../thirdparty1/SDL-release-2.32.10" sdl-build)
add_subdirectory("../../../thirdparty1/libzip-1.11.4" libzip-build)
# И ваш код
add_subdirectory(src)