Use CMake option for asset dir instead of command-line flag

This commit is contained in:
2025-01-07 13:47:50 +00:00
parent 0b9fd92d63
commit de073d7d7a
4 changed files with 32 additions and 33 deletions

View File

@@ -7,6 +7,9 @@ option(UBSAN "Enable undefined behaviour sanitizer" OFF)
option(PERFMON "Monitor performance of game code" ON)
option(HOTRELOAD "Enable hot reloading of game code" OFF)
set(ASSET_DIR "${CMAKE_SOURCE_DIR}/assets"
CACHE STRING "Directory containing asset pack")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
macro(set_default_target_options target)