From 5823b05feb29a59510c32a9c28ca18b50b9b6399 Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 1 May 2016 18:06:14 +0200 Subject: sync with upstream --- project/cmake/scripts/common/projectmacros.cmake | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'project/cmake/scripts/common/projectmacros.cmake') diff --git a/project/cmake/scripts/common/projectmacros.cmake b/project/cmake/scripts/common/projectmacros.cmake index d0739c4..7ce4ee9 100644 --- a/project/cmake/scripts/common/projectmacros.cmake +++ b/project/cmake/scripts/common/projectmacros.cmake @@ -35,10 +35,13 @@ function(copy_skin_to_buildtree skin relative) endforeach() file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/${dest}/media) string(REPLACE "${relative}/" "" dest ${skin}) - pack_xbt(${skin}/media - ${CMAKE_BINARY_DIR}/${dest}/media/Textures.xbt - ${CMAKE_BINARY_DIR}) - + pack_xbt(${skin}/media ${CMAKE_BINARY_DIR}/${dest}/media/Textures.xbt) + + file(GLOB THEMES RELATIVE ${skin}/themes ${skin}/themes/*) + foreach(theme ${THEMES}) + pack_xbt(${skin}/themes/${theme} ${CMAKE_BINARY_DIR}/${dest}/media/${theme}.xbt) + endforeach() + set(XBT_FILES ${XBT_FILES} PARENT_SCOPE) set(install_data ${install_data} PARENT_SCOPE) endfunction() -- cgit v1.2.3