- Game-Music-Emu: reduce code delta with original source.

This will help with the next Game-Music-Emu upgrades.
This commit is contained in:
Edoardo Prezioso 2016-12-16 21:14:45 +01:00 committed by Christoph Oelckers
parent 14c282da30
commit e1af7e3f8c
2 changed files with 27 additions and 3 deletions

View file

@ -108,3 +108,10 @@ set( LIBGME_HAVE_GCC_VISIBILITY ${ENABLE_VISIBILITY} CACHE BOOL "GCC support for
# Shared library defined here # Shared library defined here
add_subdirectory(gme) add_subdirectory(gme)
# EXCLUDE_FROM_ALL adds build rules but keeps it out of default build
# [ZDoom] Not needed.
if( FALSE )
add_subdirectory(player EXCLUDE_FROM_ALL)
add_subdirectory(demo EXCLUDE_FROM_ALL)
endif()

View file

@ -131,6 +131,12 @@ set (EXPORTED_HEADERS gme.h)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/gme_types.h.in configure_file(${CMAKE_CURRENT_SOURCE_DIR}/gme_types.h.in
${CMAKE_CURRENT_BINARY_DIR}/gme_types.h) ${CMAKE_CURRENT_BINARY_DIR}/gme_types.h)
# [ZDoom] Not needed.
if( FALSE )
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libgme.pc.in
${CMAKE_CURRENT_BINARY_DIR}/libgme.pc @ONLY)
endif()
# On some platforms we may need to change headers or whatnot based on whether # On some platforms we may need to change headers or whatnot based on whether
# we're building the library or merely using the library. The following is # we're building the library or merely using the library. The following is
# only defined when building the library to allow us to tell which is which. # only defined when building the library to allow us to tell which is which.
@ -147,7 +153,18 @@ add_library(gme ${libgme_SRCS})
# to the API), the SOVERSION should be the same even when bumping up VERSION. # to the API), the SOVERSION should be the same even when bumping up VERSION.
# The way gme.h is designed, SOVERSION should very rarely be bumped, if ever. # The way gme.h is designed, SOVERSION should very rarely be bumped, if ever.
# Hopefully the API can stay compatible with old versions. # Hopefully the API can stay compatible with old versions.
#set_target_properties(gme # [ZDoom] Not needed.
# PROPERTIES VERSION ${GME_VERSION} if( FALSE )
# SOVERSION 0) set_target_properties(gme
PROPERTIES VERSION ${GME_VERSION}
SOVERSION 0)
install(TARGETS gme LIBRARY DESTINATION lib${LIB_SUFFIX}
RUNTIME DESTINATION bin # DLL platforms
ARCHIVE DESTINATION lib) # DLL platforms
install(FILES ${EXPORTED_HEADERS} DESTINATION include/gme)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libgme.pc DESTINATION lib/pkgconfig)
endif()
target_link_libraries(gme) target_link_libraries(gme)