2012-08-19 03:04:55 +02:00
|
|
|
SET(SRC_LIST
|
2016-07-02 23:23:08 +02:00
|
|
|
utils.c
|
|
|
|
config.c
|
|
|
|
timeline.c
|
|
|
|
gamestate.c
|
2016-07-03 00:43:32 +02:00
|
|
|
libsuperderpy.c
|
2016-07-02 23:23:08 +02:00
|
|
|
)
|
2016-06-27 21:20:02 +02:00
|
|
|
|
2016-06-28 00:17:49 +02:00
|
|
|
add_definitions(-DLIBSUPERDERPY_GAMENAME_PRETTY="${LIBSUPERDERPY_GAMENAME_PRETTY}")
|
|
|
|
add_definitions(-DLIBSUPERDERPY_GAMENAME="${LIBSUPERDERPY_GAMENAME}")
|
|
|
|
add_definitions(-DLIBSUPERDERPY_INITIAL_GAMESTATE="${LIBSUPERDERPY_INITIAL_GAMESTATE}")
|
|
|
|
|
2012-08-19 03:04:55 +02:00
|
|
|
find_package(Allegro5 REQUIRED)
|
|
|
|
find_package(Allegro5Font REQUIRED)
|
|
|
|
find_package(Allegro5TTF REQUIRED)
|
|
|
|
find_package(Allegro5Primitives REQUIRED)
|
|
|
|
find_package(Allegro5Audio REQUIRED)
|
|
|
|
find_package(Allegro5ACodec REQUIRED)
|
|
|
|
find_package(Allegro5Image REQUIRED)
|
2016-06-27 21:21:59 +02:00
|
|
|
find_package(Allegro5Color REQUIRED)
|
2012-08-20 02:35:37 +02:00
|
|
|
if(APPLE)
|
2016-07-02 23:23:08 +02:00
|
|
|
find_package(Allegro5Main)
|
2012-08-20 02:35:37 +02:00
|
|
|
endif(APPLE)
|
2012-08-19 03:04:55 +02:00
|
|
|
|
2012-09-30 10:02:07 +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
|
|
|
|
2012-08-20 02:35:37 +02:00
|
|
|
include_directories(${ALLEGRO5_INCLUDE_DIR} ${ALLEGRO5_FONT_INCLUDE_DIR} ${ALLEGRO5_TTF_INCLUDE_DIR} ${ALLEGRO5_PRIMITIVES_INCLUDE_DIR} ${ALLEGRO5_AUDIO_INCLUDE_DIR} ${ALLEGRO5_ACODEC_INCLUDE_DIR} ${ALLEGRO5_IMAGE_INCLUDE_DIR})
|
|
|
|
|
2016-07-02 23:23:08 +02:00
|
|
|
target_link_libraries("libsuperderpy" ${ALLEGRO5_LIBRARIES} ${ALLEGRO5_FONT_LIBRARIES} ${ALLEGRO5_TTF_LIBRARIES} ${ALLEGRO5_PRIMITIVES_LIBRARIES} ${ALLEGRO5_AUDIO_LIBRARIES} ${ALLEGRO5_ACODEC_LIBRARIES} ${ALLEGRO5_IMAGE_LIBRARIES} ${ALLEGRO5_MAIN_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})
|