aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCristiano A. Silva <hudokkow@gmail.com>2016-07-20 18:46:13 +0100
committerGitHub <noreply@github.com>2016-07-20 18:46:13 +0100
commitcb5829ca8fef55ad210cae6793a1c83f6d3dddcb (patch)
tree5fc78a32bbbe4075fb429b744de8b2746d0fe38f /tools
parent29db2f89b79aecdb4bb9b17c74592fa44611fb27 (diff)
parent2d156a7d2d8f0380be62ba1fc99a297645ae5d7d (diff)
Merge pull request #9987 from hudokkow/cpack_debian
[cmake/cpack] Debian packages generation
Diffstat (limited to 'tools')
-rw-r--r--tools/EventClients/Clients/WiiRemote/CMakeLists.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/EventClients/Clients/WiiRemote/CMakeLists.txt b/tools/EventClients/Clients/WiiRemote/CMakeLists.txt
new file mode 100644
index 0000000000..2442d61265
--- /dev/null
+++ b/tools/EventClients/Clients/WiiRemote/CMakeLists.txt
@@ -0,0 +1,22 @@
+list(APPEND CMAKE_MODULE_PATH ${CORE_SOURCE_DIR}/project/cmake/modules)
+
+find_package(Bluetooth REQUIRED)
+find_package(CWiid REQUIRED)
+
+set(SOURCES CWIID_WiiRemote.cpp)
+
+set(HEADERS CWIID_WiiRemote.h)
+
+add_executable(${APP_NAME_LC}-wiiremote ${SOURCES} ${HEADERS})
+
+target_include_directories(${APP_NAME_LC}-wiiremote
+ PRIVATE ${BLUETOOTH_INCLUDE_DIRS}
+ ${CWIID_INCLUDE_DIRS})
+
+target_link_libraries(${APP_NAME_LC}-wiiremote
+ PRIVATE ${SYSTEM_LDFLAGS}
+ ${BLUETOOTH_LIBRARIES}
+ ${CWIID_LIBRARIES})
+
+target_compile_options(${APP_NAME_LC}-wiiremote PRIVATE ${ARCH_DEFINES})
+