aboutsummaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLiam <[email protected]>2022-12-28 17:26:46 -0500
committerLiam <[email protected]>2022-12-28 17:26:46 -0500
commitbe43b62d79cc03f9908ce5036f96a94e9053ba65 (patch)
tree0c55f4709eb56914520aa711f5735a96877fda1f /CMakeLists.txt
parent3c2aa183a1618a6e8ec2977741b35f11f0a97a6d (diff)
downloadyuzu-android-be43b62d79cc03f9908ce5036f96a94e9053ba65.tar.gz
yuzu-android-be43b62d79cc03f9908ce5036f96a94e9053ba65.zip
cmake: make libusb optional
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6a124db07..ea7829707 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,6 +22,8 @@ CMAKE_DEPENDENT_OPTION(YUZU_USE_BUNDLED_SDL2 "Download bundled SDL2 binaries" ON
# On Linux system SDL2 is likely to be lacking HIDAPI support which have drawbacks but is needed for SDL motion
CMAKE_DEPENDENT_OPTION(YUZU_USE_EXTERNAL_SDL2 "Compile external SDL2" ON "ENABLE_SDL2;NOT MSVC" OFF)
+option(ENABLE_LIBUSB "Enable the use of LibUSB" ON)
+
option(ENABLE_OPENGL "Enable OpenGL" ON)
mark_as_advanced(FORCE ENABLE_OPENGL)
option(ENABLE_QT "Enable the Qt frontend" ON)
@@ -206,7 +208,6 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
find_package(enet 1.3)
find_package(fmt 9 REQUIRED)
find_package(inih)
-find_package(libusb 1.0.24)
find_package(lz4 REQUIRED)
find_package(nlohmann_json 3.8 REQUIRED)
find_package(Opus 1.3)
@@ -214,6 +215,10 @@ find_package(Vulkan 1.3.238)
find_package(ZLIB 1.2 REQUIRED)
find_package(zstd 1.5 REQUIRED)
+if (ENABLE_LIBUSB)
+ find_package(libusb 1.0.24)
+endif()
+
if (ARCHITECTURE_x86 OR ARCHITECTURE_x86_64)
find_package(xbyak 6 QUIET)
endif()