diff options
author | Christian Fetzer <fetzer.ch@gmail.com> | 2016-04-24 18:16:42 +0200 |
---|---|---|
committer | h.udo <hudokkow@gmail.com> | 2016-04-24 19:47:09 +0100 |
commit | 220f50766323f2afd2e7788b805a46179bd24c95 (patch) | |
tree | 6907cad727e58f7c3d2054c701205306bcbb346b /project | |
parent | 3449cc3fcd1df65490da9420fa673b52655d81de (diff) |
[cmake] Package additional xbt files (themes)
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() |