mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-27 01:22:37 -06:00
externals: allow user to use system dynarmic (#7044)
This commit is contained in:
parent
7931aac3b7
commit
492aa3cb10
2 changed files with 15 additions and 3 deletions
|
@ -97,6 +97,7 @@ option(USE_SYSTEM_CPP_JWT "Use the system cpp-jwt (instead of the bundled one)"
|
||||||
option(USE_SYSTEM_SOUNDTOUCH "Use the system SoundTouch (instead of the bundled one)" OFF)
|
option(USE_SYSTEM_SOUNDTOUCH "Use the system SoundTouch (instead of the bundled one)" OFF)
|
||||||
option(USE_SYSTEM_CPP_HTTPLIB "Use the system cpp-httplib (instead of the bundled one)" OFF)
|
option(USE_SYSTEM_CPP_HTTPLIB "Use the system cpp-httplib (instead of the bundled one)" OFF)
|
||||||
option(USE_SYSTEM_JSON "Use the system JSON (nlohmann-json3) package (instead of the bundled one)" OFF)
|
option(USE_SYSTEM_JSON "Use the system JSON (nlohmann-json3) package (instead of the bundled one)" OFF)
|
||||||
|
option(USE_SYSTEM_DYNARMIC "Use the system dynarmic (instead of the bundled one)" OFF)
|
||||||
|
|
||||||
if (CITRA_USE_PRECOMPILED_HEADERS)
|
if (CITRA_USE_PRECOMPILED_HEADERS)
|
||||||
message(STATUS "Using Precompiled Headers.")
|
message(STATUS "Using Precompiled Headers.")
|
||||||
|
|
17
externals/CMakeLists.txt
vendored
17
externals/CMakeLists.txt
vendored
|
@ -78,9 +78,20 @@ endif()
|
||||||
|
|
||||||
# Dynarmic
|
# Dynarmic
|
||||||
if ("x86_64" IN_LIST ARCHITECTURE OR "arm64" IN_LIST ARCHITECTURE)
|
if ("x86_64" IN_LIST ARCHITECTURE OR "arm64" IN_LIST ARCHITECTURE)
|
||||||
set(DYNARMIC_TESTS OFF CACHE BOOL "")
|
if(USE_SYSTEM_DYNARMIC)
|
||||||
set(DYNARMIC_FRONTENDS "A32" CACHE STRING "")
|
find_package(dynarmic REQUIRED)
|
||||||
add_subdirectory(dynarmic EXCLUDE_FROM_ALL)
|
add_library(dynarmic INTERFACE)
|
||||||
|
target_link_libraries(dynarmic INTERFACE dynarmic::dynarmic)
|
||||||
|
# The dynarmic package's cmake files are helpfully completely silent
|
||||||
|
# so we have to inform the user of its status ourselves
|
||||||
|
if(TARGET dynarmic::dynarmic)
|
||||||
|
message(STATUS "Found dynarmic")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
set(DYNARMIC_TESTS OFF CACHE BOOL "")
|
||||||
|
set(DYNARMIC_FRONTENDS "A32" CACHE STRING "")
|
||||||
|
add_subdirectory(dynarmic EXCLUDE_FROM_ALL)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# getopt
|
# getopt
|
||||||
|
|
Loading…
Reference in a new issue