code: make modules standalone
parent
f241a0d280
commit
9085ae8da2
|
@ -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)
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
file(GLOB MODULES modules/*.h source/*.c)
|
||||||
|
add_library(eco2d-modules STATIC ${MODULES})
|
||||||
|
include_directories(eco2d-modules .)
|
Loading…
Reference in New Issue