diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-08 16:12:18 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-08 16:14:12 +0200 |
commit | 744574a36be2914c6d4641a9fa6e76359a4e218e (patch) | |
tree | f85c0c028f93bb1362e95d4b636faaa4e0bc35da /proto-vjoystick/CMakeLists.txt | |
parent | 5598520e24e978b55428f6da4a5dd9617844f152 (diff) |
proto/vjoystick: add new vjoystick protocol to replace vjoy
Diffstat (limited to 'proto-vjoystick/CMakeLists.txt')
-rw-r--r-- | proto-vjoystick/CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/proto-vjoystick/CMakeLists.txt b/proto-vjoystick/CMakeLists.txt new file mode 100644 index 00000000..d0cfe591 --- /dev/null +++ b/proto-vjoystick/CMakeLists.txt @@ -0,0 +1,16 @@ +if(WIN32) + set(SDK_VJOYSTICK "" CACHE PATH "vjoystick SDK path") + if(SDK_VJOYSTICK) + if(opentrack-64bit) + set(arch "amd64/") + else() + set(arch "") + endif() + set(lib "${SDK_VJOYSTICK}/lib/${arch}vJoyInterface.lib") + set(dll "${SDK_VJOYSTICK}/lib/${arch}vJoyInterface.dll") + opentrack_boilerplate(opentrack-proto-vjoy) + target_link_libraries(opentrack-proto-vjoy ${lib}) + target_include_directories(opentrack-proto-vjoy SYSTEM PUBLIC "${SDK_VJOYSTICK}/inc") + install(FILES "${dll}" DESTINATION ${opentrack-hier-pfx}) + endif() +endif() |