diff options
Diffstat (limited to 'project/cmake/scripts/linux/ExtraTargets.cmake')
-rw-r--r-- | project/cmake/scripts/linux/ExtraTargets.cmake | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/project/cmake/scripts/linux/ExtraTargets.cmake b/project/cmake/scripts/linux/ExtraTargets.cmake index 6c770846a9..0b350b3f65 100644 --- a/project/cmake/scripts/linux/ExtraTargets.cmake +++ b/project/cmake/scripts/linux/ExtraTargets.cmake @@ -7,6 +7,9 @@ if(ENABLE_X11 AND X_FOUND AND XRANDR_FOUND) endif() # WiiRemote -if(ENABLE_EVENTCLIENTS AND BLUETOOTH_FOUND AND CWIID_FOUND) - add_subdirectory(${CORE_SOURCE_DIR}/tools/EventClients/Clients/WiiRemote build/WiiRemote) +if(ENABLE_EVENTCLIENTS AND BLUETOOTH_FOUND) + find_package(CWiid QUIET) + if(CWIID_FOUND) + add_subdirectory(${CORE_SOURCE_DIR}/tools/EventClients/Clients/WiiRemote build/WiiRemote) + endif() endif() |