diff options
Diffstat (limited to 'proto-vjoy/CMakeLists.txt')
-rw-r--r-- | proto-vjoy/CMakeLists.txt | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/proto-vjoy/CMakeLists.txt b/proto-vjoy/CMakeLists.txt index 5584c876..eb2246a2 100644 --- a/proto-vjoy/CMakeLists.txt +++ b/proto-vjoy/CMakeLists.txt @@ -5,14 +5,15 @@ if(WIN32) if(CMAKE_COMPILER_IS_GNUCXX) set(link "-Wl,--enable-stdcall-fixup") endif() - opentrack_boilerplate(opentrack-proto-vjoy LINK "${link}") - if(MSVC) - set(ext .lib) + if(opentrack-64bit) + set(arch 64) else() - set(ext .dll) + set(arch 32) endif() - target_link_libraries(opentrack-proto-vjoy ${MY_QT_LIBS} ${SDK_VJOY}/VJoy${ext}) + set(lib ${SDK_VJOY}/VJoy${arch}.dll) + opentrack_boilerplate(opentrack-proto-vjoy LINK "${link}") + target_link_libraries(opentrack-proto-vjoy "${lib}") target_include_directories(opentrack-proto-vjoy SYSTEM PUBLIC ${SDK_VJOY}) - install(FILES "${SDK_VJOY}/VJoy.dll" DESTINATION . ${opentrack-perms}) + install(FILES "${lib}" DESTINATION .) endif() endif() |