diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-28 10:39:40 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-28 10:40:14 +0200 |
commit | b6c1c5ec8768eae71f3492a4e5c92cac65cee5a1 (patch) | |
tree | 61ee5d7825d407b2648424bc110f9fc18af25420 /tracker-rs/CMakeLists.txt | |
parent | dacec3441a491c132443b9c8bb066ca514cb3335 (diff) |
tracker/rs: connect rs_impl to build
Pinging @ph0b.
Diffstat (limited to 'tracker-rs/CMakeLists.txt')
-rw-r--r-- | tracker-rs/CMakeLists.txt | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/tracker-rs/CMakeLists.txt b/tracker-rs/CMakeLists.txt index eb64feb1..60bb90b1 100644 --- a/tracker-rs/CMakeLists.txt +++ b/tracker-rs/CMakeLists.txt @@ -1,15 +1,18 @@ -if(WIN32) +set(SDK_REALSENSE "$ENV{RSSDK_DIR}" CACHE PATH "Intel RealSense SDK dir") + +if(WIN32 AND SDK_REALSENSE) opentrack_boilerplate(opentrack-tracker-rs) - if(opentrack-64bit) - set(subdir amd64) - else() - set(subdir ia32) - endif() - set(libpath "${CMAKE_SOURCE_DIR}/tracker-rs/rs_impl/bin/${subdir}/rs-impl.lib") - add_custom_target(opentrack-tracker-rs-impl DEPENDS ${libpath}) - add_dependencies(opentrack-tracker-rs opentrack-tracker-rs-impl) - target_link_libraries(opentrack-tracker-rs "${libpath}" advapi32) + #if(opentrack-64bit) + # set(subdir amd64) + #else() + # set(subdir ia32) + #endif() + #set(libpath "${CMAKE_SOURCE_DIR}/tracker-rs/rs_impl/bin/${subdir}/rs-impl.lib") + #add_custom_target(opentrack-tracker-rs-impl DEPENDS ${libpath}) + #target_link_libraries(opentrack-tracker-rs "${libpath}" advapi32) install(FILES "${CMAKE_SOURCE_DIR}/tracker-rs/redist/intel_rs_sdk_runtime_websetup_10.0.26.0396.exe" DESTINATION ${opentrack-contrib-pfx} ${opentrack-perms}) install(FILES "${CMAKE_SOURCE_DIR}/tracker-rs/redist/RS_EULA.rtf" DESTINATION ${opentrack-contrib-pfx} ${opentrack-perms}) + add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/rs_impl") + target_link_libraries(opentrack-tracker-rs opentrack-tracker-rs-impl) endif() |