summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-15 19:10:40 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-15 19:10:40 +0200
commite5644bff6531717503c14b209041c1a7524e9998 (patch)
tree082f080a45a3bc638cbb2e604e028c47dab3f438
parent0965a0665e232425373b942291716f968191f04f (diff)
Fix Rift build on mingw-w64
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ba4857a2..67dcd1ee 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -462,8 +462,12 @@ endif()
include_directories("${SDK_RIFT}/Src")
add_library(opentrack-tracker-rift SHARED ${opentrack-tracker-rift-c} ${opentrack-tracker-rift-moc} ${opentrack-tracker-rift-uih} ${opentrack-tracker-rift-rcc})
target_link_libraries(opentrack-tracker-rift ${MY_QT_LIBS})
- if(WIN32)
+ 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(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
SET_TARGET_PROPERTIES(opentrack-tracker-rift