2012-08-19 03:04:55 +02:00
|
|
|
SET(SRC_LIST
|
2017-08-24 21:09:07 +02:00
|
|
|
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()
|
2016-06-27 21:20:02 +02:00
|
|
|
|
2016-07-02 23:23:08 +02:00
|
|
|
add_library("libsuperderpy" SHARED ${SRC_LIST})
|
2012-12-24 19:41:12 +01:00
|
|
|
|
2016-07-02 23:23:08 +02:00
|
|
|
SET_TARGET_PROPERTIES("libsuperderpy" PROPERTIES PREFIX "")
|
2012-08-19 03:04:55 +02:00
|
|
|
|
2017-06-26 15:21:13 +02:00
|
|
|
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)
|
2012-12-26 19:00:29 +01:00
|
|
|
|
2016-07-02 23:23:08 +02:00
|
|
|
install(TARGETS "libsuperderpy" DESTINATION ${LIB_INSTALL_DIR})
|