2024-03-03 07:43:07 +01:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
project(cgbwebcam)
|
|
|
|
|
2024-03-03 09:52:02 +01:00
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
|
2024-03-03 07:43:07 +01:00
|
|
|
set(SDL_STATIC ON)
|
|
|
|
set(SDL_SHARED OFF)
|
|
|
|
|
|
|
|
set(SDL_AUDIO OFF)
|
|
|
|
set(SDL_CAMERA ON)
|
|
|
|
set(SDL_VIDEO ON)
|
|
|
|
add_subdirectory(SDL)
|
|
|
|
|
|
|
|
set(BUILD_GL OFF)
|
|
|
|
set(BUILD_GLES2 OFF)
|
|
|
|
set(BUILD_GLES3 OFF)
|
|
|
|
set(BUILD_LIBRETRO OFF)
|
|
|
|
set(BUILD_PYTHON OFF)
|
|
|
|
set(BUILD_QT OFF)
|
|
|
|
set(BUILD_SDL OFF)
|
|
|
|
set(BUILD_SHARED OFF)
|
|
|
|
set(BUILD_STATIC ON)
|
|
|
|
set(DISABLE_DEPS ON)
|
|
|
|
set(ENABLE_SCRIPTING OFF)
|
2024-03-03 10:00:05 +01:00
|
|
|
set(LIBMGBA_ONLY ON)
|
2024-03-03 07:43:07 +01:00
|
|
|
set(M_CORE_GB ON)
|
|
|
|
set(M_CORE_GBA OFF)
|
|
|
|
set(USE_DEBUGGERS OFF)
|
|
|
|
set(USE_DISCORD_RPC OFF)
|
|
|
|
set(USE_FFMPEG OFF)
|
|
|
|
set(USE_LUA OFF)
|
|
|
|
add_subdirectory(mgba)
|
|
|
|
|
|
|
|
include_directories(SDL/include)
|
|
|
|
include_directories(mgba/include)
|
|
|
|
|
|
|
|
add_executable(cgbwebcam main.c)
|
|
|
|
target_link_libraries(cgbwebcam SDL3-static mgba)
|