summaryrefslogtreecommitdiffhomepage
path: root/tracker-tobii-eyex
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-24 22:14:26 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-24 22:14:26 +0100
commited3d655eae7830235789168f5f4b3aa39854adb3 (patch)
tree903d18cbecfefe9521c892bdfbf03f2bf13c1890 /tracker-tobii-eyex
parent28d028d26abaaa5c6192624262811e2989de36de (diff)
tracker/tobii: simplify NO-INSTALL logic
Diffstat (limited to 'tracker-tobii-eyex')
-rw-r--r--tracker-tobii-eyex/CMakeLists.txt21
1 files changed, 11 insertions, 10 deletions
diff --git a/tracker-tobii-eyex/CMakeLists.txt b/tracker-tobii-eyex/CMakeLists.txt
index 7456d392..bbf5bad3 100644
--- a/tracker-tobii-eyex/CMakeLists.txt
+++ b/tracker-tobii-eyex/CMakeLists.txt
@@ -1,7 +1,8 @@
if(WIN32)
set(SDK_TOBII_EYEX "" CACHE PATH "")
if(SDK_TOBII_EYEX)
- opentrack_boilerplate(opentrack-tracker-tobii-eyex NO-INSTALL)
+ set(porked NO-INSTALL)
+ opentrack_boilerplate(opentrack-tracker-tobii-eyex ${porked})
target_link_libraries(opentrack-tracker-tobii-eyex opentrack-spline-widget)
set(tobii-libdir ${SDK_TOBII_EYEX}/lib/x86/)
set(tobii-dll ${tobii-libdir}/Tobii.EyeX.Client.dll)
@@ -13,15 +14,15 @@ if(WIN32)
set(tobii-incdir ${SDK_TOBII_EYEX}/include/eyex)
target_include_directories(opentrack-tracker-tobii-eyex SYSTEM PUBLIC ${tobii-incdir})
- install(FILES ${tobii-dll} DESTINATION ${opentrack-hier-pfx} ${opentrack-perms})
- if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
- file(TO_CMAKE_PATH "$ENV{SystemRoot}" sysroot)
- if (IS_DIRECTORY "${sysroot}/SysWOW64")
- set(src "${sysroot}/SysWOW64")
- else()
- set(src "${sysroot}/System32")
- endif()
- if(FALSE)
+ if(NOT "!${porked}" STREQUAL "!NO-INSTALL")
+ install(FILES ${tobii-dll} DESTINATION ${opentrack-hier-pfx} ${opentrack-perms})
+ if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
+ file(TO_CMAKE_PATH "$ENV{SystemRoot}" sysroot)
+ if (IS_DIRECTORY "${sysroot}/SysWOW64")
+ set(src "${sysroot}/SysWOW64")
+ else()
+ set(src "${sysroot}/System32")
+ endif()
install(FILES "${src}/msvcp110.dll" DESTINATION ${opentrack-hier-pfx} ${opentrack-perms})
install(FILES "${src}/msvcr110.dll" DESTINATION ${opentrack-hier-pfx} ${opentrack-perms})
endif()