summaryrefslogtreecommitdiffhomepage
path: root/proto-libevdev/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-30 10:09:58 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-10-30 10:09:58 +0100
commit36273c6dfdd9a0a22e396b354213eb492886afaf (patch)
tree23152837b6f861d9e0ca667141e8b34cf90398a6 /proto-libevdev/CMakeLists.txt
parent3bdd6411060dce095528239acc1812d4e7180371 (diff)
parent48c30a3d75d18e87e39c18cb52961bb37ab6055e (diff)
Merge branch 'unstable' into trackhat
Diffstat (limited to 'proto-libevdev/CMakeLists.txt')
-rw-r--r--proto-libevdev/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/proto-libevdev/CMakeLists.txt b/proto-libevdev/CMakeLists.txt
new file mode 100644
index 00000000..960a1271
--- /dev/null
+++ b/proto-libevdev/CMakeLists.txt
@@ -0,0 +1,10 @@
+if(LINUX OR APPLE)
+ set(SDK_ENABLE_LIBEVDEV FALSE CACHE BOOL "libevdev virtual joystick protocol support")
+ if(SDK_ENABLE_LIBEVDEV)
+ include(FindPkgConfig)
+ opentrack_boilerplate(opentrack-proto-libevdev)
+ pkg_check_modules(libevdev REQUIRED QUIET libevdev)
+ target_link_libraries(opentrack-proto-libevdev ${libevdev_LIBRARIES})
+ include_directories(opentrack-proto-libevdev SYSTEM PUBLIC ${libevdev_INCLUDE_DIRS})
+ endif()
+endif()