Fixed some dependencies

This commit is contained in:
2021-11-01 14:58:30 -07:00
parent 4935ded1fc
commit 72dbf6b5f3
2 changed files with 10 additions and 4 deletions

View File

@ -11,7 +11,7 @@ set(CMAKE_C_STANDARD_REQUIRED ON)
# Set some global flags # Set some global flags
add_compile_definitions( add_compile_definitions(
_CRT_SECURE_NO_WARNINGS=1 _CRT_SECURE_NO_WARNINGS=1
ASSET_PREFIX="../../../assets/" ASSET_PREFIX="../assets/"
) )
# Do initial set up depending on the build target type. # Do initial set up depending on the build target type.
@ -58,6 +58,11 @@ elseif(TARGET_TYPE STREQUAL game)
shared/textures/test_texture.png textures/test_texture.png shared/textures/test_texture.png textures/test_texture.png
) )
# Locales
tool_copy(locale_en
locale/language/en-US.csv locale/language/en-US.csv
)
# Poker Game # Poker Game
if(TARGET_GAME STREQUAL poker) if(TARGET_GAME STREQUAL poker)
add_compile_definitions( add_compile_definitions(
@ -92,6 +97,7 @@ elseif(TARGET_TYPE STREQUAL game)
vn_lucy vn_lucy
vn_julie vn_julie
vn_sammy vn_sammy
locale_en
) )
endif() endif()

View File

@ -5,7 +5,7 @@
function(tool_assets args) function(tool_assets args)
add_custom_target(assets add_custom_target(assets
COMMAND tar -C ./assets -cvf test.zip * COMMAND tar -C ./assets -cvf assets.zip *
DEPENDS ${ARGV} DEPENDS ${ARGV}
COMMENT "Compressing Assets" COMMENT "Compressing Assets"
) )
@ -29,7 +29,7 @@ function(tool_copy target)
endforeach() endforeach()
add_custom_target(${target} add_custom_target(${target}
DEPENDS ${MY_LIST} DEPENDS ${LOOP_DEPENDENCIES}
COMMENT "Copying ${FILE_NAME}" COMMENT "Creating dependency set ${target}"
) )
endfunction() endfunction()