summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-06-05 11:56:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-06-05 11:56:10 +0200
commit46c297050898737745ad0b620796df9de30b63eb (patch)
treee983b4386ed517e87a21b72d2c67410f02a9e9fc
parent67710b224346b962fe2b53f84b7ab17c8ee52191 (diff)
cmake: ht and pt require opencv
-rw-r--r--CMakeLists.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 55386ede..1fbdfa87 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -314,9 +314,6 @@ if(SDK_WINE_PREFIX)
endif()
endif()
-opentrack_library(opentrack-tracker-ht ftnoir_tracker_ht)
-target_link_libraries(opentrack-tracker-ht opentrack-compat)
-
opentrack_library(opentrack-tracker-udp ftnoir_tracker_udp)
opentrack_library(opentrack-tracker-freepie-udp ftnoir_tracker_freepie-udp)
@@ -324,18 +321,24 @@ if(OpenCV_FOUND)
opentrack_library(opentrack-tracker-pt ftnoir_tracker_pt)
target_link_libraries(opentrack-tracker-pt ${OpenCV_LIBS})
target_include_directories(opentrack-tracker-pt SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS})
+ link_with_dinput8(opentrack-tracker-pt)
+
if(SDK_ARUCO_LIBPATH)
opentrack_library(opentrack-tracker-aruco ftnoir_tracker_aruco)
target_link_libraries(opentrack-tracker-aruco ${SDK_ARUCO_LIBPATH} ${OpenCV_LIBS})
target_include_directories(opentrack-tracker-aruco SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS})
endif()
+
target_link_libraries(opentrack-filter-kalman ${OpenCV_LIBS})
target_include_directories(opentrack-filter-kalman SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS})
+
+ opentrack_library(opentrack-tracker-ht ftnoir_tracker_ht)
+ target_link_libraries(opentrack-tracker-ht opentrack-compat)
+ target_include_directories(opentrack-tracker-ht SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS})
+ link_with_dinput8(opentrack-tracker-ht)
endif()
-link_with_dinput8(opentrack-tracker-ht)
link_with_dinput8(opentrack-tracker-joystick)
-link_with_dinput8(opentrack-tracker-pt)
if(SDK_RIFT)
set(link-flags)