summaryrefslogtreecommitdiffstats
path: root/src/input/CMakeLists.txt
diff options
context:
space:
mode:
authorSebastien Braun2010-10-05 19:04:36 +0200
committerSebastien Braun2010-10-05 19:58:04 +0200
commit43038c98f8cc48cfded692ea44e02e93597da305 (patch)
treea6b4562d2e6a664923c10243e3ce0494a0055439 /src/input/CMakeLists.txt
parentUpdate translation files (1) (diff)
downloadpvs-43038c98f8cc48cfded692ea44e02e93597da305.tar.gz
pvs-43038c98f8cc48cfded692ea44e02e93597da305.tar.xz
pvs-43038c98f8cc48cfded692ea44e02e93597da305.zip
Add hard requirement for XInput library.
XInput2 will be preferred if its presence is detected.
Diffstat (limited to 'src/input/CMakeLists.txt')
-rw-r--r--src/input/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/input/CMakeLists.txt b/src/input/CMakeLists.txt
index 29374e2..1a3b154 100644
--- a/src/input/CMakeLists.txt
+++ b/src/input/CMakeLists.txt
@@ -6,6 +6,14 @@ set(pvsinput_SRCS
)
if(UNIX)
+ find_file(XINPUT2_HDR X11/extensions/XInput2.h)
+ if(XINPUT2_HDR)
+ set_property(SOURCE x11FakeKeyboardHandler.cpp
+ APPEND
+ PROPERTY COMPILE_DEFINITIONS HAVE_XINPUT2_H
+ )
+ endif()
+
set(pvsprivinputd_SRCS
pvsprivinputd.cpp
pvsPrivInputHandler.cpp