From 6bc53dd9f92dcf980243238640d453b5a21b014d Mon Sep 17 00:00:00 2001 From: capitalistspz Date: Fri, 20 Jun 2025 10:19:34 +0100 Subject: [PATCH] Respect `ENABLE_HIDAPI` option --- src/input/CMakeLists.txt | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/input/CMakeLists.txt b/src/input/CMakeLists.txt index 62fa8d85..a6593646 100644 --- a/src/input/CMakeLists.txt +++ b/src/input/CMakeLists.txt @@ -70,13 +70,17 @@ if (ENABLE_WIIMOTE) api/Wiimote/NativeWiimoteController.h api/Wiimote/NativeWiimoteController.cpp api/Wiimote/WiimoteDevice.h - api/Wiimote/hidapi/HidapiWiimote.cpp - api/Wiimote/hidapi/HidapiWiimote.h ) - if (UNIX AND NOT APPLE) + if (ENABLE_HIDAPI) target_sources(CemuInput PRIVATE - api/Wiimote/l2cap/L2CapWiimote.cpp - api/Wiimote/l2cap/L2CapWiimote.h) + api/Wiimote/hidapi/HidapiWiimote.cpp + api/Wiimote/hidapi/HidapiWiimote.h) + endif () + + if (ENABLE_BLUEZ) + target_sources(CemuInput PRIVATE + api/Wiimote/l2cap/L2CapWiimote.cpp + api/Wiimote/l2cap/L2CapWiimote.h) endif() endif () @@ -95,6 +99,7 @@ target_link_libraries(CemuInput PRIVATE pugixml::pugixml SDL2::SDL2 ) + if (ENABLE_HIDAPI) target_link_libraries(CemuInput PRIVATE hidapi::hidapi) endif() @@ -103,7 +108,6 @@ if (ENABLE_WXWIDGETS) target_link_libraries(CemuInput PRIVATE wx::base wx::core) endif() - if (ENABLE_BLUEZ) target_link_libraries(CemuInput PRIVATE bluez::bluez) endif () \ No newline at end of file