summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-01-15 14:19:03 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-01-28 21:34:33 +0100
commit50fd6b574d55bc5c06ab0ff2a76da11c5722f462 (patch)
tree6eb20ea5726ab4d52d1ee8430d62dd81d91bf1d2 /media
parentc03b3aa9cdee689e5d4b1b9b85520aa4d552af42 (diff)
downloadknights-50fd6b574d55bc5c06ab0ff2a76da11c5722f462.tar.gz
knights-50fd6b574d55bc5c06ab0ff2a76da11c5722f462.zip
Change CMake rules to make tarballs for themes created during building.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'media')
-rw-r--r--media/CMakeLists.txt19
1 files changed, 10 insertions, 9 deletions
diff --git a/media/CMakeLists.txt b/media/CMakeLists.txt
index f807c20..647b8fd 100644
--- a/media/CMakeLists.txt
+++ b/media/CMakeLists.txt
@@ -11,13 +11,14 @@ install(
icon-display.png
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
-)
-
-install(
- FILES
- KBDefault.tar.gz
- KSDefault.tar.gz
- KCDefault.tar.gz
-
- DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/themes
)
+
+foreach( _theme KBDefault KCDefault KSDefault )
+
+ tde_create_tarball(
+ TARGET ${_theme}.tar.gz
+ SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR}/${_theme}
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/themes
+ )
+
+endforeach( )