summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-06-05 08:59:16 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-06-05 08:59:16 +0200
commit0bc8ecf4c70cfaea6876502108a816320d2be8b6 (patch)
tree1d6c207da65b9ac71a514b923129d1a99ee99e63
parenta79e5b0e24e9b756e88d97173e76a91a59f6eb6a (diff)
parent89e040931523f3b90a44f711a7e76f3b189a2eb5 (diff)
Merge pull request #30 from okdshin/enable_to_select_libevdev_pathopentrack-2.2a1
add SDK_LIBEVDEV to enable users to select libevdev path.
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 40682474..c2763dec 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,7 +88,10 @@ if(WIN32 AND DEFINED MSVC_VERSION AND NOT ${MSVC_VERSION} LESS 1700)
endif()
if(UNIX)
- set(SDK_ENABLE_LIBEVDEV FALSE CACHE BOOL "libevdev virtual joystick protocol support (probably Linux only)")
+ set(SDK_ENABLE_LIBEVDEV FALSE CACHE BOOL "libevdev virtual joystick protocol support (probably Linux only)")
+ if(SDK_ENABLE_LIBEVDEV)
+ SET(SDK_LIBEVDEV "" CACHE PATH "libevdev SDK path")
+ endif()
endif()
if(WIN32)
SET(SDK_CONSOLE_DEBUG FALSE CACHE BOOL "Console build")
@@ -330,6 +333,7 @@ if(SDK_VJOY)
endif()
if(SDK_ENABLE_LIBEVDEV)
+ include_directories(${SDK_LIBEVDEV})
opentrack_library(opentrack-proto-libevdev)
target_link_libraries(opentrack-proto-libevdev evdev)
endif()