summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-win32-crt.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/opentrack-win32-crt.cmake')
-rw-r--r--cmake/opentrack-win32-crt.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/opentrack-win32-crt.cmake b/cmake/opentrack-win32-crt.cmake
new file mode 100644
index 00000000..85348e89
--- /dev/null
+++ b/cmake/opentrack-win32-crt.cmake
@@ -0,0 +1,8 @@
+if(MSVC)
+ set(SDK_WIN32_CRT "" CACHE PATH "Path to dynamically linked CRT libraries")
+ if(SDK_WIN32_CRT)
+ file(GLOB crt-libs "${SDK_WIN32_CRT}/*.dll")
+ install(FILES ${crt-libs} DESTINATION . ${opentrack-perms})
+ install(FILES "${SDK_WIN32_CRT}/LICENSE.TXT" RENAME "MSVCRT-LICENSE.txt" DESTINATION "./${opentrack-hier-doc}/3rdparty-notices")
+ endif()
+endif()