summaryrefslogtreecommitdiffhomepage
path: root/tracker-rs/CMakeLists.txt
blob: ca439a09a32106adda8fb79e24b39945195d20db (plain)
1
2
3
4
5
6
7
8
9
10
set(SDK_REALSENSE "$ENV{RSSDK_DIR}" CACHE PATH "Intel RealSense SDK dir")

if(WIN32 AND SDK_REALSENSE AND opentrack-intel)
    if(CMAKE_COMPILER_IS_GNUCC)
        add_definitions(-fpermissive -Wno-error) # for SDK headers
    endif()
    otr_module(tracker-rs)
    add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/rs_impl")
    target_link_libraries(opentrack-tracker-rs opentrack-tracker-rs-impl)
endif()