mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-13 04:27:59 +01:00
12 lines
463 B
CMake
12 lines
463 B
CMake
|
FILE (GLOB gamestates "*.c")
|
||
|
FOREACH(gamestate ${gamestates})
|
||
|
get_filename_component(gamestate_name ${gamestate} NAME_WE)
|
||
|
set(sources "${gamestate_name}.c")
|
||
|
FILE (GLOB submodules "${gamestate_name}/*.c")
|
||
|
FOREACH(submodule ${submodules})
|
||
|
get_filename_component(submodule_name ${submodule} NAME_WE)
|
||
|
list(APPEND sources "${gamestate_name}/${submodule_name}.c")
|
||
|
ENDFOREACH(submodule)
|
||
|
register_gamestate(${gamestate_name} "${sources}")
|
||
|
ENDFOREACH(gamestate)
|