cmake: make source files of game's shared library configurable

This commit is contained in:
Sebastian Krzyszkowiak 2019-02-28 21:44:02 +01:00
parent ae9cf19778
commit 66e0319691
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -23,7 +23,7 @@ if (APPLE)
endif(APPLE)
install(TARGETS ${EXECUTABLE} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
add_library("lib${LIBSUPERDERPY_GAMENAME}" SHARED "common.c")
add_library("lib${LIBSUPERDERPY_GAMENAME}" SHARED ${SHARED_SRC_LIST})
set_target_properties("lib${LIBSUPERDERPY_GAMENAME}" PROPERTIES PREFIX "")
target_link_libraries("lib${LIBSUPERDERPY_GAMENAME}" libsuperderpy)
install(TARGETS "lib${LIBSUPERDERPY_GAMENAME}" DESTINATION ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})