12 lines
308 B
CMake
12 lines
308 B
CMake
function(tool_game name version)
|
|
add_compile_definitions(
|
|
GAME_NAME=${name}
|
|
GAME_VERSION=${version}
|
|
)
|
|
|
|
file(WRITE ${TEMP_DIR}/dawn/game/game.h
|
|
"#pragma once\n#include <games/${TARGET_GAME}/game.h>"
|
|
)
|
|
|
|
target_include_directories(${PROJECT_NAME} PUBLIC ${TEMP_DIR}/dawn)
|
|
endfunction() |