mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-10-02 11:48:04 +03:00
We only support a fixed set of modules, so dynamic linking isn't really necessary. This paves the way for running System3.9 games on more platforms. NIGHTDLL is temporarily disabled, because many symbols conflict with the SACT module.
42 lines
959 B
CMake
42 lines
959 B
CMake
add_library(graph STATIC
|
|
graph.c
|
|
surface.c
|
|
cg.c
|
|
graph_expandcolor_blend.c
|
|
graph_fillrect.c
|
|
graph_fillrect_amap.c
|
|
graph_fillrect_acolor.c
|
|
graph_rect.c
|
|
graph_copy.c
|
|
graph_copy_amap.c
|
|
graph_copy_bright.c
|
|
graph_copy_whiteout.c
|
|
graph_blend_amap.c
|
|
graph_blend_screen.c
|
|
graph_saturadd_amap.c
|
|
graph_draw_amap.c
|
|
graph_stretch.c
|
|
graph_cg.c
|
|
graph_buller.c
|
|
gre_blend_useamap.c
|
|
gre_blend.c
|
|
gre_blend_screen.c
|
|
)
|
|
|
|
add_library(alk STATIC alk.c)
|
|
target_compile_options(alk PRIVATE -Wno-pointer-sign)
|
|
|
|
add_library(drawtext STATIC drawtext.c)
|
|
target_compile_options(drawtext PRIVATE -Wno-pointer-sign)
|
|
|
|
add_library(list STATIC list.c)
|
|
|
|
target_include_directories(graph PUBLIC .)
|
|
target_include_directories(alk PUBLIC .)
|
|
target_include_directories(drawtext PUBLIC .)
|
|
target_include_directories(list PUBLIC .)
|
|
|
|
add_executable(lib_test list_test.c)
|
|
target_link_libraries(lib_test PRIVATE list)
|
|
add_test(NAME lib_test COMMAND lib_test)
|