eco2d/code/apps/server/CMakeLists.txt

43 lines
954 B
CMake

add_executable(eco2d-server
source/main.c
source/network.c
source/utils/options.c
source/world/perlin.c
source/world/world.c
source/world/blocks.c
header/network.h
header/platform.h
header/utils/options.h
header/world/perlin.h
header/world/world.h
header/world/blocks.h
header/world/blocks_info.h
header/components/net.h
header/components/physics.h
header/components/general.h
header/components/controllers.h
../../vendors/cwpack/cwpack.c
../../vendors/cwpack/cwpack.h
../../vendors/flecs/flecs.c
../../vendors/flecs/flecs.h
../../vendors/flecs/flecs_meta.c
../../vendors/flecs/flecs_meta.h
../../common/signal_handling.c
../../common/signal_handling.h
)
include_directories(eco2d-server header)
if (WIN32)
target_link_libraries(eco2d-server winmm)
elseif (APPLE)
target_link_libraries(eco2d-server pthread m dl)
elseif (UNIX)
target_link_libraries(eco2d-server pthread m dl atomic)
endif()