summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-06-27 16:19:25 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-06-27 16:19:25 +0200
commitcb1fb94c79e44219ba15fafdbcad1cd0ef613726 (patch)
tree77e9285e22528e116293d0b076b481e76387ffe7 /CMakeLists.txt
parent1535f956a73ea3be78bffa82a224ab7bcc6dd14d (diff)
parentd4e2f529a3e0c0c496eab4b7745fc320de8805c9 (diff)
Merge branch 'master' of github.com:opentrack/opentrack
Conflicts: ftnoir_tracker_rift/ftnoir_tracker_rift.cpp
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt33
1 files changed, 32 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f51d38e7..f2b3805c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,6 +17,7 @@ endif()
IF(WIN32)
SET(SDK_SM_FACEAPI_PATH "" CACHE PATH "SeeingMachines FaceAPI SDK path")
SET(SDK_RIFT "" CACHE PATH "libOVR path")
+ SET(SDK_HYDRA "" CACHE PATH "libSixense path")
SET(SDK_VJOY "" CACHE PATH "VJoy SDK path")
ENDIF()
@@ -248,7 +249,7 @@ if(NOT SDK_FACEAPI_ONLY)
QT4_WRAP_UI(opentrack-tracker-hillcrest-uih ${opentrack-tracker-hillcrest-ui})
QT4_ADD_RESOURCES(opentrack-tracker-hillcrest-rcc ${opentrack-tracker-hillcrest-rc})
- file(GLOB opentrack-tracker-rift-c "ftnoir_tracker_rift/*.cpp")
+ file(GLOB opentrack-tracker-rift-c "ftnoir_tracker_rift/*.cpp")
file(GLOB opentrack-tracker-rift-h "ftnoir_tracker_rift/*.h")
QT4_WRAP_CPP(opentrack-tracker-rift-moc ${opentrack-tracker-rift-h})
file(GLOB opentrack-tracker-rift-ui "ftnoir_tracker_rift/*.ui")
@@ -256,6 +257,14 @@ if(NOT SDK_FACEAPI_ONLY)
QT4_WRAP_UI(opentrack-tracker-rift-uih ${opentrack-tracker-rift-ui})
QT4_ADD_RESOURCES(opentrack-tracker-rift-rcc ${opentrack-tracker-rift-rc})
+ file(GLOB opentrack-tracker-hydra-c "ftnoir_tracker_hydra/*.cpp")
+ file(GLOB opentrack-tracker-hydra-h "ftnoir_tracker_hydra/*.h")
+ QT4_WRAP_CPP(opentrack-tracker-hydra-moc ${opentrack-tracker-hydra-h})
+ file(GLOB opentrack-tracker-hydra-ui "ftnoir_tracker_hydra/*.ui")
+ file(GLOB opentrack-tracker-hydra-rc "ftnoir_tracker_hydra/*.qrc")
+ QT4_WRAP_UI(opentrack-tracker-hydra-uih ${opentrack-tracker-hydra-ui})
+ QT4_ADD_RESOURCES(opentrack-tracker-hydra-rcc ${opentrack-tracker-hydra-rc})
+
file(GLOB opentrack-tracker-faceapi-c "ftnoir_tracker_sm/*.cpp")
file(GLOB opentrack-tracker-faceapi-h "ftnoir_tracker_sm/*.h")
QT4_WRAP_CPP(opentrack-tracker-faceapi-moc ${opentrack-tracker-faceapi-h})
@@ -466,6 +475,19 @@ endif()
endif()
endif()
+ if(SDK_HYDRA)
+ include_directories("${SDK_HYDRA}/include")
+ include_directories("${SDK_HYDRA}/include/sixense_utils")
+ add_library(opentrack-tracker-hydra SHARED ${opentrack-tracker-hydra-c} ${opentrack-tracker-hydra-moc} ${opentrack-tracker-hydra-uih} ${opentrack-tracker-hydra-rcc})
+ target_link_libraries(opentrack-tracker-hydra ${MY_QT_LIBS})
+ if(WIN32)
+ target_link_libraries(opentrack-tracker-hydra "${SDK_HYDRA}/lib/win32/release_static/sixense_s.lib" "${SDK_HYDRA}/lib/win32/release_static/sixense_utils_s.lib")
+ endif()
+ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
+ SET_TARGET_PROPERTIES(opentrack-tracker-hydra
+ PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_SOURCE_DIR}/facetracknoir/posix-version-script.txt")
+ endif()
+ endif()
if(SDK_HILLCREST)
include_directories("${SDK_HILLCREST}/include")
if(WIN32)
@@ -592,6 +614,15 @@ if(NOT SDK_FACEAPI_ONLY)
)
endif()
+ if(SDK_HYDRA)
+ install(
+ TARGETS opentrack-tracker-hydra
+ RUNTIME DESTINATION .
+ LIBRARY DESTINATION .
+ NAMELINK_SKIP
+ )
+ endif()
+
if(WIN32)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
file(GLOB mingw-libgcc-s "${SDK_MINGW_PATH}/bin/libgcc_s_*.dll")