libsuperderpy/src/CMakeLists.txt

21 lines
625 B
CMake
Raw Normal View History

2012-08-19 03:04:55 +02:00
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()
2016-06-27 21:20:02 +02:00
2016-07-02 23:23:08 +02:00
add_library("libsuperderpy" SHARED ${SRC_LIST})
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)
2016-07-02 23:23:08 +02:00
install(TARGETS "libsuperderpy" DESTINATION ${LIB_INSTALL_DIR})