summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt39
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
44option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF) 44option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF)
45 45
46option(YUZU_USE_BUNDLED_OPUS "Compile bundled opus" ON)
47
48option(YUZU_TESTS "Compile tests" ON) 46option(YUZU_TESTS "Compile tests" ON)
49 47
50option(YUZU_USE_PRECOMPILED_HEADERS "Use precompiled headers" ON) 48option(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
204find_package(fmt 8.0.1 REQUIRED CONFIG) 202find_package(enet 1.3)
205find_package(nlohmann_json 3.8 REQUIRED CONFIG) 203find_package(fmt 9 REQUIRED)
204find_package(inih)
205find_package(lz4 1.8 REQUIRED)
206find_package(nlohmann_json 3.8 REQUIRED)
207find_package(Opus 1.3)
208find_package(Vulkan 1.3.213)
206find_package(ZLIB 1.2 REQUIRED) 209find_package(ZLIB 1.2 REQUIRED)
210find_package(zstd 1.5 REQUIRED)
211
212if (ARCHITECTURE_x86 OR ARCHITECTURE_x86_64)
213 find_package(xbyak 6)
214endif()
215
216if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64)
217 find_package(dynarmic 6.2.4)
218endif()
219
220if (ENABLE_CUBEB)
221 find_package(cubeb)
222endif()
207 223
208# Search for config-only package first (for vcpkg), then try non-config 224if (USE_DISCORD_PRESENCE)
209find_package(zstd 1.5 CONFIG) 225 find_package(DiscordRPC)
210if (NOT zstd_FOUND)
211 find_package(zstd 1.5 REQUIRED)
212endif() 226endif()
213 227
214# lz4 1.8 is required, but vcpkg's lz4-config.cmake does not have version info 228if (ENABLE_WEB_SERVICE)
215find_package(lz4 CONFIG) 229 find_package(cpp-jwt 1.4)
216if (NOT lz4_FOUND) 230 find_package(httplib 0.11)
217 find_package(lz4 1.8 REQUIRED)
218endif() 231endif()
219 232
220if (YUZU_TESTS) 233if (YUZU_TESTS)
221 find_package(Catch2 2.13.7 REQUIRED CONFIG) 234 find_package(Catch2 2.13.7 REQUIRED)
222endif() 235endif()
223 236
224find_package(Boost 1.73.0 COMPONENTS context) 237find_package(Boost 1.73.0 COMPONENTS context)