From 81dd42385b6f38fdcb895e56aa1f9d6c970db879 Mon Sep 17 00:00:00 2001 From: Jacker Date: Mon, 10 Aug 2015 11:39:48 +0300 Subject: [PATCH] install sdl2.dll on windows to fix issues with cpack --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 148f0730..a9892cd2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -199,6 +199,7 @@ if(WIN32) # Enable the SDL2main when the windows main function has been removed.... if(WIN64) file(COPY ${CMAKE_CURRENT_LIST_DIR}/sdl2-windows/lib/x64/SDL2.dll DESTINATION ${CMAKE_BINARY_DIR}) + install(FILES "${CMAKE_CURRENT_LIST_DIR}/sdl2-windows/lib/x64/SDL2.dll" DESTINATION "${INSTALL_DEFAULT_BINDIR}") set(SDL32_BUNDLED_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/sdl2-windows/lib/x64/SDL2.lib" #"${CMAKE_CURRENT_LIST_DIR}/sdl2-windows/lib/x64/SDL2main.lib" @@ -206,6 +207,7 @@ if(WIN32) set(SDL32_BUNDLED_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/sdl2/include") else(WIN64) file(COPY ${CMAKE_CURRENT_LIST_DIR}/sdl2-windows/lib/x86/SDL2.dll DESTINATION ${CMAKE_BINARY_DIR}) + install(FILES "${CMAKE_CURRENT_LIST_DIR}/sdl2-windows/lib/x86/SDL2.dll" DESTINATION "${INSTALL_DEFAULT_BINDIR}") set(SDL32_BUNDLED_LIBRARIES "${CMAKE_CURRENT_LIST_DIR}/sdl2-windows/lib/x86/SDL2.lib" #"${CMAKE_CURRENT_LIST_DIR}/sdl2-windows/lib/x86/SDL2main.lib"