something
This commit is contained in:
@@ -13,6 +13,28 @@ add_executable(factorygame
|
||||
util/font.h
|
||||
util/audio.c
|
||||
util/audio.h
|
||||
main.c) # Ensure the target is defined before linking
|
||||
util/util.c
|
||||
util/util.h
|
||||
items/item.c
|
||||
items/item.h
|
||||
tiles/tile.c
|
||||
tiles/tile.h
|
||||
tiles/belt.c
|
||||
tiles/belt.h
|
||||
main.c
|
||||
player/player.c
|
||||
player/player.h) # Ensure the target is defined before linking
|
||||
|
||||
# Define the path to the assets folder
|
||||
set(ASSETS_SOURCE_DIR "${CMAKE_SOURCE_DIR}/assets")
|
||||
set(ASSETS_BINARY_DIR "${CMAKE_BINARY_DIR}/assets")
|
||||
|
||||
# Copy assets directory after build
|
||||
add_custom_command(TARGET factorygame POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
"${ASSETS_SOURCE_DIR}" "${ASSETS_BINARY_DIR}"
|
||||
COMMENT "Copying assets directory to build output..."
|
||||
)
|
||||
|
||||
|
||||
target_link_libraries(factorygame SDL2 SDL2_ttf SDL2_image SDL2_gfx SDL2_mixer SDL2_net m)
|
Reference in New Issue
Block a user