2021-01-10 16:42:01 +00:00
|
|
|
add_executable(eco2d-server
|
|
|
|
source/main.c
|
|
|
|
source/network.c
|
2021-01-11 13:47:14 +00:00
|
|
|
source/perlin.c
|
|
|
|
source/options.c
|
|
|
|
source/world.c
|
|
|
|
source/blocks.c
|
2021-01-10 16:42:01 +00:00
|
|
|
|
|
|
|
header/network.h
|
2021-01-11 13:47:14 +00:00
|
|
|
header/perlin.h
|
|
|
|
header/options.h
|
|
|
|
header/world.h
|
|
|
|
header/blocks.h
|
2021-01-11 16:20:12 +00:00
|
|
|
header/blocks_info.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)
|
|
|
|
target_link_libraries(eco2d-server winmm)
|
|
|
|
elseif (UNIX)
|
2021-01-15 00:10:15 +00:00
|
|
|
target_link_libraries(eco2d-server pthread m dl atomic)
|
2021-01-14 16:46:43 +00:00
|
|
|
endif()
|