eco2d/code/apps/server/CMakeLists.txt

25 lines
552 B
CMake

file(GLOB COMPONENTS header/components/*.h source/components/*.c)
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
${COMPONENTS}
)
include_directories(eco2d-server header)
target_link_libraries(eco2d-server eco2d-common flecs-bundle cwpack)
link_system_libs(eco2d-server)