spaceserver/server/CMakeLists.txt

33 lines
636 B
CMake

cmake_minimum_required(VERSION 3.0)
project(spaceserver)
include_directories("lib/" "games/" "objects/" "users/")
set(SRC_SERVER
calculation.c
common.c
connection.c
data.c
main.c
update.c)
set(SRC_LIB
lib/common.c
lib/event.c
lib/enet.c
lib/message.c
lib/timer.c)
set(SRC_USERS users/users.c)
set(SRC_OBJECTS objects/objects.c)
set(SRC_GAMES games/games.c)
find_library(ENET_LIB enet)
find_library(ALLEGRO_LIB allegro)
add_executable(${PROJECT_NAME} ${SRC_SERVER} ${SRC_LIB} ${SRC_USERS} ${SRC_OBJECTS} ${SRC_GAMES})
target_link_libraries(${PROJECT_NAME} ${ENET_LIB} ${ALLEGRO_LIB})