23 lines
540 B
CMake
23 lines
540 B
CMake
add_subdirectory(modules)
|
|
|
|
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/utils/options.h
|
|
header/world/perlin.h
|
|
header/world/world.h
|
|
header/world/blocks.h
|
|
header/world/blocks_info.h
|
|
)
|
|
|
|
include_directories(header modules)
|
|
target_compile_definitions(eco2d-server PRIVATE SERVER)
|
|
target_link_libraries(eco2d-server eco2d-common eco2d-modules flecs-bundle cwpack)
|
|
link_system_libs(eco2d-server)
|