A bit more code cleanup

This commit is contained in:
2021-11-22 20:25:45 -08:00
parent a4198e8396
commit 6c9eb8b685
217 changed files with 206 additions and 184 deletions

View File

@ -3,6 +3,7 @@
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
add_subdirectory(display)
add_subdirectory(file)
add_subdirectory(vn)
add_subdirectory(display)
add_subdirectory(game)
add_subdirectory(vn)

16
tools/game/CMakeLists.txt Normal file
View File

@ -0,0 +1,16 @@
function(tool_game name version)
add_compile_definitions(
GAME_NAME=${name}
GAME_VERSION=${version}
)
file(WRITE ${TEMP_DIR}/dawn/game/game.h
"#include \"games/${TARGET_GAME}/game.h\""
)
# target_sources(${PROJECT_NAME}
# PRIVATE
# ${TEMP_DIR}/dawn/game/game.h
# )
target_include_directories(${PROJECT_NAME} PUBLIC ${TEMP_DIR}/dawn)
endfunction()