feat: add export / file packing
This commit is contained in:
@@ -28,9 +28,11 @@ set(GAME_SRC
|
||||
|
||||
add_executable(lightkeeper ${GAME_SRC})
|
||||
|
||||
# Release is what gets exported, players shouldn't get a console next to the game (it logs to a file too)
|
||||
set_target_properties(lightkeeper PROPERTIES
|
||||
CXX_STANDARD 20
|
||||
CXX_EXTENSIONS OFF
|
||||
WIN32_EXECUTABLE $<CONFIG:Release,MinSizeRel>
|
||||
)
|
||||
|
||||
#target_add_extra_warnings(lightkeeper)
|
||||
@@ -108,6 +110,7 @@ add_dependencies(lightkeeper _internal_cook_game_assets)
|
||||
|
||||
destrum_cook_engine_assets(lightkeeper "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
destrum_copy_runtime_dlls(lightkeeper)
|
||||
destrum_add_export(lightkeeper "${ASSETS_RUNTIME_DIR}")
|
||||
|
||||
install(TARGETS lightkeeper RUNTIME DESTINATION bin)
|
||||
install(DIRECTORY "${ASSETS_RUNTIME_DIR}/" DESTINATION "bin/assets/game")
|
||||
|
||||
Reference in New Issue
Block a user