eco2d/code/apps/server/CMakeLists.txt

43 lines
954 B
CMake
Raw Normal View History

2021-01-10 16:42:01 +00:00
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
2021-01-10 16:42:01 +00:00
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
2021-01-18 12:16:38 +00:00
2021-01-17 15:33:56 +00:00
header/components/net.h
2021-01-18 12:16:38 +00:00
header/components/physics.h
header/components/general.h
header/components/controllers.h
2021-01-17 11:05:29 +00:00
../../vendors/cwpack/cwpack.c
../../vendors/cwpack/cwpack.h
../../vendors/flecs/flecs.c
../../vendors/flecs/flecs.h
2021-01-17 15:33:56 +00:00
../../vendors/flecs/flecs_meta.c
../../vendors/flecs/flecs_meta.h
../../common/signal_handling.c
../../common/signal_handling.h
2021-01-10 16:42:01 +00:00
)
2021-01-11 13:47:14 +00:00
include_directories(eco2d-server header)
2021-01-14 16:46:43 +00:00
if (WIN32)
2021-01-16 15:49:45 +00:00
target_link_libraries(eco2d-server winmm)
elseif (APPLE)
target_link_libraries(eco2d-server pthread m dl)
2021-01-14 16:46:43 +00:00
elseif (UNIX)
2021-01-16 15:49:45 +00:00
target_link_libraries(eco2d-server pthread m dl atomic)
2021-01-14 16:46:43 +00:00
endif()