diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-01-15 14:19:03 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-01-28 21:42:01 +0100 |
commit | c401a23cf64393dc18506edd69822fbd9ef62a10 (patch) | |
tree | d67eba1bd840d2064c5f514c3e80c6d947744c31 /media | |
parent | 2b2fe43dd2ed6bff811982b6370afca3f864b983 (diff) | |
download | knights-c401a23cf64393dc18506edd69822fbd9ef62a10.tar.gz knights-c401a23cf64393dc18506edd69822fbd9ef62a10.zip |
Change CMake rules to make tarballs for themes created during building.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 50fd6b574d55bc5c06ab0ff2a76da11c5722f462)
Diffstat (limited to 'media')
-rw-r--r-- | media/CMakeLists.txt | 19 |
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( ) |