mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-12 20:18:00 +01:00
20 lines
625 B
CMake
20 lines
625 B
CMake
SET(SRC_LIST
|
|
utils.c
|
|
config.c
|
|
timeline.c
|
|
gamestate.c
|
|
libsuperderpy.c
|
|
character.c
|
|
internal.c
|
|
)
|
|
if (EMSCRIPTEN)
|
|
list(APPEND SRC_LIST emscripten-audio-stream.c)
|
|
endif()
|
|
|
|
add_library("libsuperderpy" SHARED ${SRC_LIST})
|
|
|
|
SET_TARGET_PROPERTIES("libsuperderpy" PROPERTIES PREFIX "")
|
|
|
|
target_link_libraries("libsuperderpy" ${ALLEGRO5_LIBRARIES} ${ALLEGRO5_FONT_LIBRARIES} ${ALLEGRO5_TTF_LIBRARIES} ${ALLEGRO5_PRIMITIVES_LIBRARIES} ${ALLEGRO5_AUDIO_LIBRARIES} ${ALLEGRO5_ACODEC_LIBRARIES} ${ALLEGRO5_VIDEO_LIBRARIES} ${ALLEGRO5_IMAGE_LIBRARIES} m dl)
|
|
|
|
install(TARGETS "libsuperderpy" DESTINATION ${LIB_INSTALL_DIR})
|