all repos — mgba @ 7431a5f556dad8b3b3ca35ee3f14490a6a82ba76

mGBA Game Boy Advance Emulator

All: Set SOVERSION and NAMELINK_SKIP for packaging
Jeffrey Pfau jeffrey@endrift.com
Tue, 28 Jul 2015 01:02:11 -0700
commit

7431a5f556dad8b3b3ca35ee3f14490a6a82ba76

parent

818bde5869d09f8ea502697bb86eb23568771c22

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -366,6 +366,7 @@ endif()

if(BUILD_SHARED) add_library(${BINARY_NAME} SHARED ${SRC}) + set_target_properties(${BINARY_NAME} PROPERTIES SOVERSION ${LIB_VERSION_ABI}) if(BUILD_STATIC) add_library(${BINARY_NAME}-static STATIC ${SRC}) set_target_properties(${BINARY_NAME}-static PROPERTIES COMPILE_DEFINITIONS "${FEATURE_DEFINES}")

@@ -379,7 +380,7 @@

add_dependencies(${BINARY_NAME} version-info) target_link_libraries(${BINARY_NAME} ${DEBUGGER_LIB} ${DEPENDENCY_LIB} ${OS_LIB}) -install(TARGETS ${BINARY_NAME} DESTINATION ${LIBDIR} COMPONENT lib${BINARY_NAME}) +install(TARGETS ${BINARY_NAME} LIBRARY DESTINATION ${LIBDIR} COMPONENT lib${BINARY_NAME} NAMELINK_SKIP ARCHIVE DESTINATION ${LIBDIR} COMPONENT lib${BINARY_NAME}) if(UNIX AND NOT APPLE) install(FILES ${CMAKE_SOURCE_DIR}/res/mgba-16.png DESTINATION share/icons/hicolor/16x16/apps RENAME mgba.png COMPONENT lib${BINARY_NAME}) install(FILES ${CMAKE_SOURCE_DIR}/res/mgba-24.png DESTINATION share/icons/hicolor/24x24/apps RENAME mgba.png COMPONENT lib${BINARY_NAME})