summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-23 16:08:38 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-23 16:08:38 +0200
commitd1ea33dddbcceef3cb50d4e38d15fc024b6972bc (patch)
treed01f2127bd2786f9e5f0d4ea624654896a2dae31
parentf64549bf043e1331b6c9d1226619f337e5fd8e0c (diff)
fix Linux Rift build!
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
-rw-r--r--CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5a10f8b9..e458fab3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -492,11 +492,13 @@ endif()
target_link_libraries(opentrack-tracker-rift ${MY_QT_LIBS})
if(MSVC)
target_link_libraries(opentrack-tracker-rift "${SDK_RIFT}/Lib/Win32/libovr.lib" winmm.lib)
- else(WIN32)
- target_link_libraries(opentrack-tracker-rift "${SDK_RIFT}/LibOVR.a" winmm.lib setupapi.lib)
else()
- target_link_libraries(opentrack-tracker-rift "${SDK_RIFT}/LibOVR.a")
- endif()
+ if(WIN32)
+ target_link_libraries(opentrack-tracker-rift "${SDK_RIFT}/LibOVR.a" winmm.lib setupapi.lib)
+ else()
+ target_link_libraries(opentrack-tracker-rift "${SDK_RIFT}/LibOVR.a" udev Xinerama)
+ endif()
+ endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
SET_TARGET_PROPERTIES(opentrack-tracker-rift
PROPERTIES