summaryrefslogtreecommitdiffhomepage
path: root/tracker-rs/rs_impl/CMakeLists.txt
blob: 97c6fd99460789b943b11be032c9cef91079de63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if(WIN32)
    otr_module(tracker-rs-impl STATIC NO-QT SOURCES "${SDK_REALSENSE}/opensource/src/libpxc/libpxc.cpp")
    target_compile_definitions(opentrack-tracker-rs-impl PRIVATE -DUNICODE -D_UNICODE)
    target_include_directories(opentrack-tracker-rs-impl PRIVATE SYSTEM "${SDK_REALSENSE}/include")
    target_link_libraries(opentrack-tracker-rs-impl advapi32)

    # for SDK headers
    if(CMAKE_COMPILER_IS_GNUCXX)
        add_definitions(-fpermissive -Wno-error -w
                        #-Wno-missing-field-initializers -Wno-switch -Wno-sign-compare
                        #-Wno-unknown-pragmas -Wno-attributes
        )
    endif()
endif()