blob: 7152cb48a7cee96bad4b358740f5e07e86592b9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
if(WIN32)
opentrack_boilerplate(opentrack-tracker-rs)
if(opentrack-64bit)
set(subdir amd64)
else()
set(subdir ia32)
endif()
if(MSVC)
set_property(TARGET opentrack-tracker-rs APPEND_STRING PROPERTY LINK_FLAGS "/NODEFAULTLIB:LIBCMT.lib")
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)
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})
endif()
|