blob: 22678c3286be32fcf35a6fb7323b81efde664dab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
if(WIN32)
set(SDK_VJOY "" CACHE PATH "VJoy SDK path")
if(SDK_VJOY)
opentrack_boilerplate(opentrack-proto-vjoy GNU-LINK "-Wl,--enable-stdcall-fixup")
if(MSVC)
set(ext .lib)
else()
set(ext .dll)
endif()
target_link_libraries(opentrack-proto-vjoy ${MY_QT_LIBS} ${SDK_VJOY}/VJoy${ext})
target_include_directories(opentrack-proto-vjoy SYSTEM PUBLIC ${SDK_VJOY})
install(FILES "${SDK_VJOY}/VJoy.dll" DESTINATION . ${opentrack-perms})
endif()
endif()
|