mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-30 21:40:57 +01:00
18 lines
442 B
CMake
18 lines
442 B
CMake
set(LIBMGBA_ONLY ON)
|
|
set(USE_LZMA ON)
|
|
add_subdirectory(mgba EXCLUDE_FROM_ALL)
|
|
dolphin_disable_warnings(mgba)
|
|
|
|
target_compile_definitions(mgba PUBLIC HAVE_CRC32)
|
|
target_link_libraries(mgba ZLIB::ZLIB)
|
|
|
|
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)
|