25 lines
444 B
CMake
25 lines
444 B
CMake
if (EMSCRIPTEN)
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPLATFORM_WEB")
|
|
endif ()
|
|
|
|
add_subdirectory(engine)
|
|
add_library(lib_scenes STATIC
|
|
assets_loader.c
|
|
player_ent.c
|
|
items_ent.c
|
|
water_flow.c
|
|
editor_scene.c
|
|
menu_scene.c
|
|
game_scene.c
|
|
game_systems.c
|
|
scene_systems.c
|
|
)
|
|
target_include_directories(lib_scenes
|
|
PUBLIC
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
)
|
|
target_link_libraries(lib_scenes
|
|
PUBLIC
|
|
lib_engine
|
|
)
|