eco2d/code/apps/client/CMakeLists.txt

35 lines
702 B
CMake
Raw Normal View History

2021-01-19 11:02:17 +00:00
include(FindRaylib.cmake)
2021-01-10 16:42:01 +00:00
2021-05-05 09:25:05 +00:00
populate_pkt_srcs()
2021-01-11 20:08:16 +00:00
add_library(client-common STATIC
2021-05-05 09:25:05 +00:00
source/network.c
source/game.c
source/main.c
2021-05-05 10:14:52 +00:00
source/camera.c
2021-05-05 09:25:05 +00:00
source/entity_view.c
2021-05-06 15:30:38 +00:00
source/world_view.c
2021-05-05 09:25:05 +00:00
source/utils/options.c
2021-01-10 16:42:01 +00:00
2021-05-05 09:25:05 +00:00
header/network.h
${PKT_SRCS}
2021-01-10 16:42:01 +00:00
)
2021-01-11 20:08:16 +00:00
add_executable(eco2d-client
2021-01-11 20:11:03 +00:00
source/platform_raylib.c
2021-01-11 20:08:16 +00:00
)
add_executable(eco2d-cli
2021-01-11 20:11:03 +00:00
source/platform_text.c
2021-01-11 20:08:16 +00:00
)
2021-05-05 09:25:05 +00:00
target_compile_definitions(client-common PRIVATE CLIENT)
2021-05-04 17:39:50 +00:00
set(LIBS client-common cwpack eco2d-common eco2d-modules flecs-bundle)
2021-01-19 09:44:43 +00:00
2021-05-04 17:39:50 +00:00
include_directories(header ../../modules)
2021-01-19 09:44:43 +00:00
target_link_libraries(eco2d-client raylib ${LIBS})
target_link_libraries(eco2d-cli ${LIBS})
link_system_libs(eco2d-cli)
link_system_libs(eco2d-client)