summaryrefslogtreecommitdiffhomepage
path: root/proto-vjoy/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-08 10:07:20 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-08 10:27:31 +0200
commitf55ffa11e8b3ff5175d749991759b5c48fa386c4 (patch)
tree6529c0e26828e6f4c01c1d4964dd2e13b0de681b /proto-vjoy/CMakeLists.txt
parente4cb9703cc6810dbe07070b485ea866f00ba9252 (diff)
proto/vjoy: update .dll
Diffstat (limited to 'proto-vjoy/CMakeLists.txt')
-rw-r--r--proto-vjoy/CMakeLists.txt13
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()