aboutsummaryrefslogtreecommitdiff
path: root/tools/EventClients/Clients
diff options
context:
space:
mode:
authorMiguel Borges de Freitas <92enen@gmail.com>2023-08-04 15:09:37 +0100
committerMiguel Borges de Freitas <92enen@gmail.com>2023-08-07 11:19:18 +0100
commit751a4ba2b30c3131a6d24309ea0c8cffbe01c193 (patch)
treedb8cb71e16524c8107f81b0adadf712294b4b890 /tools/EventClients/Clients
parent7879f2a037f411448afd018d091ee2ced60fd673 (diff)
[cmake][macOS] Allow building without xbmchelper - default for arm64
Diffstat (limited to 'tools/EventClients/Clients')
-rw-r--r--tools/EventClients/Clients/OSXRemote/CMakeLists.txt36
1 files changed, 19 insertions, 17 deletions
diff --git a/tools/EventClients/Clients/OSXRemote/CMakeLists.txt b/tools/EventClients/Clients/OSXRemote/CMakeLists.txt
index 7579ec458c..46952ba374 100644
--- a/tools/EventClients/Clients/OSXRemote/CMakeLists.txt
+++ b/tools/EventClients/Clients/OSXRemote/CMakeLists.txt
@@ -1,20 +1,22 @@
-list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
+if(ENABLE_XBMCHELPER)
+ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
-set(SOURCES xbmcclientwrapper.mm
- xbmchelper_main.mm
- XBMCHelper.m
- HIDRemote/HIDRemote.m)
+ set(SOURCES xbmcclientwrapper.mm
+ xbmchelper_main.mm
+ XBMCHelper.m
+ HIDRemote/HIDRemote.m)
-set(HEADERS XBMCDebugHelpers.h)
+ set(HEADERS XBMCDebugHelpers.h)
-add_executable(XBMCHelper ${SOURCES} ${HEADERS})
-set_target_properties(XBMCHelper PROPERTIES
- RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/tools/darwin/runtime
- RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/tools/darwin/runtime
- RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/tools/darwin/runtime
- FOLDER Tools)
-target_link_libraries(XBMCHelper
- PRIVATE ${SYSTEM_LDFLAGS}
- "-framework IOKit"
- "-framework Carbon"
- "-framework Cocoa")
+ add_executable(XBMCHelper ${SOURCES} ${HEADERS})
+ set_target_properties(XBMCHelper PROPERTIES
+ RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/tools/darwin/runtime
+ RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/tools/darwin/runtime
+ RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/tools/darwin/runtime
+ FOLDER Tools)
+ target_link_libraries(XBMCHelper
+ PRIVATE ${SYSTEM_LDFLAGS}
+ "-framework IOKit"
+ "-framework Carbon"
+ "-framework Cocoa")
+endif()