From eed6391fb8b2fb2143a48c56f8ca5f2755662207 Mon Sep 17 00:00:00 2001 From: rude Date: Mon, 30 Sep 2013 00:41:03 +0200 Subject: [PATCH] Install shared libraries. --- libs/DevIL-1.7.8/CMakeLists.txt | 1 + libs/SDL2-2.0.0/CMakeLists.txt | 3 +++ libs/lua-5.1.5/CMakeLists.txt | 1 + libs/mpg123-1.15.3/CMakeLists.txt | 1 + libs/openal-soft-1.15.1/CMakeLists.txt | 4 ++++ 5 files changed, 10 insertions(+) diff --git a/libs/DevIL-1.7.8/CMakeLists.txt b/libs/DevIL-1.7.8/CMakeLists.txt index 14582ecc..5387a238 100644 --- a/libs/DevIL-1.7.8/CMakeLists.txt +++ b/libs/DevIL-1.7.8/CMakeLists.txt @@ -112,4 +112,5 @@ if (DEVIL_BUILD_SHARED) target_include_directories(DevIL PUBLIC include ${CMAKE_CURRENT_BINARY_DIR}) target_include_directories(DevIL PRIVATE src-IL/include) target_link_libraries(DevIL ${PNG_LIB_NAME_STATIC} jpeg-static jasper-static tiff-static winmm.lib) + install(TARGETS DevIL RUNTIME DESTINATION .) endif() diff --git a/libs/SDL2-2.0.0/CMakeLists.txt b/libs/SDL2-2.0.0/CMakeLists.txt index 3ecd6d4f..e0085b51 100644 --- a/libs/SDL2-2.0.0/CMakeLists.txt +++ b/libs/SDL2-2.0.0/CMakeLists.txt @@ -1148,6 +1148,9 @@ set(_INSTALL_LIBS "SDL2main") if(SDL_SHARED) add_library(SDL2 SHARED ${SOURCE_FILES}) + if(MEGA) + install(TARGETS SDL2 RUNTIME DESTINATION .) + endif() if(UNIX) set_target_properties(SDL2 PROPERTIES VERSION ${LT_VERSION} diff --git a/libs/lua-5.1.5/CMakeLists.txt b/libs/lua-5.1.5/CMakeLists.txt index 4deae58a..0741ff21 100644 --- a/libs/lua-5.1.5/CMakeLists.txt +++ b/libs/lua-5.1.5/CMakeLists.txt @@ -47,4 +47,5 @@ if (LUA_BUILD_SHARED) add_library(lua51 SHARED ${LUA_SRC}) target_include_directories(lua51 PUBLIC src) set_property(TARGET lua51 PROPERTY COMPILE_DEFINITIONS LUA_BUILD_AS_DLL=1) + install(TARGETS lua51 RUNTIME DESTINATION .) endif() diff --git a/libs/mpg123-1.15.3/CMakeLists.txt b/libs/mpg123-1.15.3/CMakeLists.txt index 0e2c9d6f..9124f3e3 100644 --- a/libs/mpg123-1.15.3/CMakeLists.txt +++ b/libs/mpg123-1.15.3/CMakeLists.txt @@ -49,4 +49,5 @@ if (MPG123_BUILD_SHARED) add_library(mpg123 SHARED ${MPG123_SRC}) target_include_directories(mpg123 PUBLIC ${MPG123_INCLUDE_DIRS}) set_property(TARGET mpg123 PROPERTY COMPILE_DEFINITIONS BUILD_MPG123_DLL) + install(TARGETS mpg123 RUNTIME DESTINATION .) endif() diff --git a/libs/openal-soft-1.15.1/CMakeLists.txt b/libs/openal-soft-1.15.1/CMakeLists.txt index ce6cf9a7..c5dea059 100644 --- a/libs/openal-soft-1.15.1/CMakeLists.txt +++ b/libs/openal-soft-1.15.1/CMakeLists.txt @@ -854,3 +854,7 @@ IF(EXAMPLES) MESSAGE(STATUS "") ENDIF() ENDIF() + +IF(MEGA) + install(TARGETS ${LIBNAME} RUNTIME DESTINATION .) +ENDIF() \ No newline at end of file