diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index facf4ea5f..1200c14bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -43,8 +43,6 @@ option(ENABLE_CUBEB "Enables the cubeb audio backend" ON) | |||
| 43 | 43 | ||
| 44 | option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF) | 44 | option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF) |
| 45 | 45 | ||
| 46 | option(YUZU_USE_BUNDLED_OPUS "Compile bundled opus" ON) | ||
| 47 | |||
| 48 | option(YUZU_TESTS "Compile tests" ON) | 46 | option(YUZU_TESTS "Compile tests" ON) |
| 49 | 47 | ||
| 50 | option(YUZU_USE_PRECOMPILED_HEADERS "Use precompiled headers" ON) | 48 | option(YUZU_USE_PRECOMPILED_HEADERS "Use precompiled headers" ON) |
| @@ -201,24 +199,39 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin) | |||
| 201 | # System imported libraries | 199 | # System imported libraries |
| 202 | # ======================================================================= | 200 | # ======================================================================= |
| 203 | 201 | ||
| 204 | find_package(fmt 8.0.1 REQUIRED CONFIG) | 202 | find_package(enet 1.3) |
| 205 | find_package(nlohmann_json 3.8 REQUIRED CONFIG) | 203 | find_package(fmt 9 REQUIRED) |
| 204 | find_package(inih) | ||
| 205 | find_package(lz4 1.8 REQUIRED) | ||
| 206 | find_package(nlohmann_json 3.8 REQUIRED) | ||
| 207 | find_package(Opus 1.3) | ||
| 208 | find_package(Vulkan 1.3.213) | ||
| 206 | find_package(ZLIB 1.2 REQUIRED) | 209 | find_package(ZLIB 1.2 REQUIRED) |
| 210 | find_package(zstd 1.5 REQUIRED) | ||
| 211 | |||
| 212 | if (ARCHITECTURE_x86 OR ARCHITECTURE_x86_64) | ||
| 213 | find_package(xbyak 6) | ||
| 214 | endif() | ||
| 215 | |||
| 216 | if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64) | ||
| 217 | find_package(dynarmic 6.2.4) | ||
| 218 | endif() | ||
| 219 | |||
| 220 | if (ENABLE_CUBEB) | ||
| 221 | find_package(cubeb) | ||
| 222 | endif() | ||
| 207 | 223 | ||
| 208 | # Search for config-only package first (for vcpkg), then try non-config | 224 | if (USE_DISCORD_PRESENCE) |
| 209 | find_package(zstd 1.5 CONFIG) | 225 | find_package(DiscordRPC) |
| 210 | if (NOT zstd_FOUND) | ||
| 211 | find_package(zstd 1.5 REQUIRED) | ||
| 212 | endif() | 226 | endif() |
| 213 | 227 | ||
| 214 | # lz4 1.8 is required, but vcpkg's lz4-config.cmake does not have version info | 228 | if (ENABLE_WEB_SERVICE) |
| 215 | find_package(lz4 CONFIG) | 229 | find_package(cpp-jwt 1.4) |
| 216 | if (NOT lz4_FOUND) | 230 | find_package(httplib 0.11) |
| 217 | find_package(lz4 1.8 REQUIRED) | ||
| 218 | endif() | 231 | endif() |
| 219 | 232 | ||
| 220 | if (YUZU_TESTS) | 233 | if (YUZU_TESTS) |
| 221 | find_package(Catch2 2.13.7 REQUIRED CONFIG) | 234 | find_package(Catch2 2.13.7 REQUIRED) |
| 222 | endif() | 235 | endif() |
| 223 | 236 | ||
| 224 | find_package(Boost 1.73.0 COMPONENTS context) | 237 | find_package(Boost 1.73.0 COMPONENTS context) |