diff options
Diffstat (limited to 'cmake/opentrack-install.cmake')
| -rw-r--r-- | cmake/opentrack-install.cmake | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/cmake/opentrack-install.cmake b/cmake/opentrack-install.cmake index 406a4dbb..074f6d97 100644 --- a/cmake/opentrack-install.cmake +++ b/cmake/opentrack-install.cmake @@ -35,6 +35,11 @@ function(install_sources)      endif()  endfunction() +function(cleanup_visual_studio_debug) +    otr_escape_string(pfx "${CMAKE_INSTALL_PREFIX}") +    install(CODE "file(REMOVE_RECURSE \"${pfx}/.vs\")") +endfunction() +  otr_install_dir("${opentrack-doc-pfx}" ${CMAKE_SOURCE_DIR}/3rdparty-notices)  otr_install_dir("${opentrack-doc-pfx}" "${CMAKE_SOURCE_DIR}/settings" "${CMAKE_SOURCE_DIR}/contrib") @@ -56,6 +61,10 @@ otr_install_misc("${opentrack-doc-src-pfx}" FILES "${CMAKE_SOURCE_DIR}/AUTHORS.m  # this must be done last because the files may be in use already  # do it last so in case of file-in-use failure, the rest is installed +if(MSVC AND CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows") +    cleanup_visual_studio_debug() +endif() +  otr_install_exec("${opentrack-hier-pfx}" FILES "${CMAKE_SOURCE_DIR}/bin/freetrackclient.dll")  otr_install_exec("${opentrack-hier-pfx}" FILES      "${CMAKE_SOURCE_DIR}/bin/NPClient.dll" | 
