code: make modules standalone

isolation_bkp/dynres
Dominik Madarász 2021-01-19 11:43:56 +01:00
parent f241a0d280
commit 9085ae8da2
10 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,4 @@
file(GLOB MODULES header/modules/*.h source/modules/*.c) add_subdirectory(modules)
add_library(eco2d-server-modules STATIC ${MODULES})
add_executable(eco2d-server add_executable(eco2d-server
source/main.c source/main.c
@ -17,6 +16,6 @@ add_executable(eco2d-server
header/world/blocks_info.h header/world/blocks_info.h
) )
include_directories(eco2d-server header) include_directories(eco2d-server header modules)
target_link_libraries(eco2d-server eco2d-common eco2d-server-modules flecs-bundle cwpack) target_link_libraries(eco2d-server eco2d-common eco2d-modules flecs-bundle cwpack)
link_system_libs(eco2d-server) link_system_libs(eco2d-server)

View File

@ -0,0 +1,3 @@
file(GLOB MODULES modules/*.h source/*.c)
add_library(eco2d-modules STATIC ${MODULES})
include_directories(eco2d-modules .)