A bit more code cleanup
This commit is contained in:
16
tools/game/CMakeLists.txt
Normal file
16
tools/game/CMakeLists.txt
Normal 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()
|
Reference in New Issue
Block a user