mirror of
https://github.com/love2d/megasource.git
synced 2026-08-12 08:30:59 +02:00
Install shared libraries.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -854,3 +854,7 @@ IF(EXAMPLES)
|
||||
MESSAGE(STATUS "")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
IF(MEGA)
|
||||
install(TARGETS ${LIBNAME} RUNTIME DESTINATION .)
|
||||
ENDIF()
|
||||
Reference in New Issue
Block a user