From d3509f15e95dd0e2fb884f0028fabfceb3ddf4fa Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 18 Sep 2013 08:11:07 +0200 Subject: build: hopefully fix tracker-pt for alterscape --- CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 15e1e3b7..e5dc9d55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -459,7 +459,7 @@ endif() "${CMAKE_SOURCE_DIR}/dinput/strmiids.lib" uuid) endif() - + if(OpenCV_FOUND) include_directories(${OpenCV_INCLUDE_DIRS}) include_directories(${OpenCV_DIR}/include) @@ -473,6 +473,14 @@ endif() SET_TARGET_PROPERTIES(opentrack-tracker-pt PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_SOURCE_DIR}/facetracknoir/posix-version-script.txt") endif() + + if(WIN32) + target_link_libraries(opentrack-tracker-pt + "${CMAKE_SOURCE_DIR}/dinput/dinput8.lib" + "${CMAKE_SOURCE_DIR}/dinput/dxguid.lib" + "${CMAKE_SOURCE_DIR}/dinput/strmiids.lib" + uuid) + endif() endif() add_library(opentrack-tracker-udp SHARED ${opentrack-tracker-udp-c} ${opentrack-tracker-udp-moc} ${opentrack-tracker-udp-uih} ${opentrack-tracker-udp-rcc}) -- cgit v1.2.3