summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-27 04:12:54 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-27 04:12:54 +0200
commitc557231b34a5c536a3fcb4f4a21c47d06b3a1ade (patch)
treea1e02e21e4dc693c2f0f36e998a5fa9f80bfa7b2 /CMakeLists.txt
parent5ac90e772c62b7bef43ebd1bb1b2000626be1236 (diff)
Rift: from mm0zct with fixes
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8ea116ec..4f10b370 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,6 +16,7 @@ endif()
IF(WIN32)
SET(SDK_SM_FACEAPI_PATH "" CACHE PATH "SeeingMachines FaceAPI SDK path")
+ SET(SDK_RIFT "" CACHE PATH "libOVR path")
ENDIF()
file(GLOB ftnoir-faceapi-wrapper-c "faceapi/*.cpp")
@@ -245,6 +246,14 @@ if(NOT SDK_FACEAPI_ONLY)
file(GLOB ftnoir-tracker-hillcrest-rc "ftnoir_tracker_hillcrest/*.qrc")
QT4_WRAP_UI(ftnoir-tracker-hillcrest-uih ${ftnoir-tracker-hillcrest-ui})
QT4_ADD_RESOURCES(ftnoir-tracker-hillcrest-rcc ${ftnoir-tracker-hillcrest-rc})
+
+ file(GLOB ftnoir-tracker-rift-c "ftnoir_tracker_rift/*.cpp")
+ file(GLOB ftnoir-tracker-rift-h "ftnoir_tracker_rift/*.h")
+ QT4_WRAP_CPP(ftnoir-tracker-rift-moc ${ftnoir-tracker-rift-h})
+ file(GLOB ftnoir-tracker-rift-ui "ftnoir_tracker_rift/*.ui")
+ file(GLOB ftnoir-tracker-rift-rc "ftnoir_tracker_rift/*.qrc")
+ QT4_WRAP_UI(ftnoir-tracker-rift-uih ${ftnoir-tracker-rift-ui})
+ QT4_ADD_RESOURCES(ftnoir-tracker-rift-rcc ${ftnoir-tracker-rift-rc})
file(GLOB ftnoir-tracker-faceapi-c "ftnoir_tracker_sm/*.cpp")
file(GLOB ftnoir-tracker-faceapi-h "ftnoir_tracker_sm/*.h")
@@ -427,6 +436,19 @@ endif()
SET_TARGET_PROPERTIES(ftnoir-tracker-udp
PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_SOURCE_DIR}/facetracknoir/posix-version-script.txt")
endif()
+
+ if(SDK_RIFT)
+ include_directories("${SDK_RIFT}/include")
+ add_library(ftnoir-tracker-rift SHARED ${ftnoir-tracker-rift-c} ${ftnoir-tracker-rift-moc} ${ftnoir-tracker-rift-uih} ${ftnoir-tracker-rift-rcc})
+ target_link_libraries(ftnoir-tracker-rift ${MY_QT_LIBS})
+ if(WIN32)
+ target_link_libraries(ftnoir-tracker-rift "${SDK_RIFT}/lib/win32/libovr.lib" winmm.lib)
+ endif()
+ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
+ SET_TARGET_PROPERTIES(ftnoir-tracker-rift
+ PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_SOURCE_DIR}/facetracknoir/posix-version-script.txt")
+ endif()
+ endif()
if(SDK_HILLCREST)
include_directories("${SDK_HILLCREST}/include")
@@ -537,6 +559,15 @@ if(NOT SDK_FACEAPI_ONLY)
NAMELINK_SKIP
)
endif()
+
+ if(SDK_RIFT)
+ install(
+ TARGETS ftnoir-tracker-rift
+ RUNTIME DESTINATION .
+ LIBRARY DESTINATION .
+ NAMELINK_SKIP
+ )
+ endif()
if(WIN32)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)