Fixed some dependencies
This commit is contained in:
@ -11,7 +11,7 @@ set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
# Set some global flags
|
||||
add_compile_definitions(
|
||||
_CRT_SECURE_NO_WARNINGS=1
|
||||
ASSET_PREFIX="../../../assets/"
|
||||
ASSET_PREFIX="../assets/"
|
||||
)
|
||||
|
||||
# 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
|
||||
)
|
||||
|
||||
# Locales
|
||||
tool_copy(locale_en
|
||||
locale/language/en-US.csv locale/language/en-US.csv
|
||||
)
|
||||
|
||||
# Poker Game
|
||||
if(TARGET_GAME STREQUAL poker)
|
||||
add_compile_definitions(
|
||||
@ -92,6 +97,7 @@ elseif(TARGET_TYPE STREQUAL game)
|
||||
vn_lucy
|
||||
vn_julie
|
||||
vn_sammy
|
||||
locale_en
|
||||
)
|
||||
endif()
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
function(tool_assets args)
|
||||
add_custom_target(assets
|
||||
COMMAND tar -C ./assets -cvf test.zip *
|
||||
COMMAND tar -C ./assets -cvf assets.zip *
|
||||
DEPENDS ${ARGV}
|
||||
COMMENT "Compressing Assets"
|
||||
)
|
||||
@ -29,7 +29,7 @@ function(tool_copy target)
|
||||
endforeach()
|
||||
|
||||
add_custom_target(${target}
|
||||
DEPENDS ${MY_LIST}
|
||||
COMMENT "Copying ${FILE_NAME}"
|
||||
DEPENDS ${LOOP_DEPENDENCIES}
|
||||
COMMENT "Creating dependency set ${target}"
|
||||
)
|
||||
endfunction()
|
Reference in New Issue
Block a user