diff options
author | wsnipex <wsnipex@a1.net> | 2017-02-19 09:44:14 +0100 |
---|---|---|
committer | wsnipex <wsnipex@a1.net> | 2017-02-19 21:10:41 +0100 |
commit | 0cffca44dbc735a75011b5dec9870e022ba1c20e (patch) | |
tree | b67645ec9040079cda3b670db5cb273403916696 | |
parent | 07daa5578e1d20eb056ce064baa42dbd47c86be2 (diff) |
[cmake] fix building WiiRemote
-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() |