diff options
Diffstat (limited to 'project')
-rw-r--r-- | project/cmake/scripts/common/projectmacros.cmake | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/project/cmake/scripts/common/projectmacros.cmake b/project/cmake/scripts/common/projectmacros.cmake index d0739c4061..7ce4ee9f22 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() |