aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorChristian Fetzer <fetzer.ch@gmail.com>2016-04-24 18:16:42 +0200
committerh.udo <hudokkow@gmail.com>2016-04-24 19:47:09 +0100
commit220f50766323f2afd2e7788b805a46179bd24c95 (patch)
tree6907cad727e58f7c3d2054c701205306bcbb346b /project
parent3449cc3fcd1df65490da9420fa673b52655d81de (diff)
[cmake] Package additional xbt files (themes)
Diffstat (limited to 'project')
-rw-r--r--project/cmake/scripts/common/projectmacros.cmake11
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()