2021-07-04 10:41:46 +00:00
|
|
|
set(LIBMGBA_ONLY ON)
|
|
|
|
set(USE_LZMA ON)
|
|
|
|
add_subdirectory(mgba EXCLUDE_FROM_ALL)
|
2022-05-21 13:09:05 +00:00
|
|
|
dolphin_disable_warnings_msvc(mgba)
|
2021-07-04 10:41:46 +00:00
|
|
|
|
|
|
|
if(NOT MSVC)
|
|
|
|
target_compile_options(mgba PRIVATE -Wno-unused-parameter -Wno-unused-result -Wno-unused-variable)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(ANDROID)
|
|
|
|
target_compile_definitions(mgba PRIVATE -Dfutimes=futimens)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(mGBA::mgba ALIAS mgba)
|