diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-12-16 05:56:22 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-12-16 11:28:42 +0100 |
commit | 5736e5f2e95437cc8ee55ebe74300f46bdc9c3c0 (patch) | |
tree | dacc6948dd786e8aea2a226fd319bbcafe74923f /src/icons/CMakeLists.txt | |
parent | 6284823847949bb94a9974bc49befb14d9513b47 (diff) | |
download | kvpnc-5736e5f2e95437cc8ee55ebe74300f46bdc9c3c0.tar.gz kvpnc-5736e5f2e95437cc8ee55ebe74300f46bdc9c3c0.zip |
Install application specific icons in the application directory.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit cba3ea286e85a0fde2758e4fe2aad9a3964a1ff5)
Diffstat (limited to 'src/icons/CMakeLists.txt')
-rw-r--r-- | src/icons/CMakeLists.txt | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/icons/CMakeLists.txt b/src/icons/CMakeLists.txt index 63f765b..3f1a2ba 100644 --- a/src/icons/CMakeLists.txt +++ b/src/icons/CMakeLists.txt @@ -1 +1,22 @@ -tde_install_icons( ) +##### install application icon ################## + +tde_install_icons( ${PROJECT_NAME} ) + + +##### install other icons ####################### + +unset( _other_icons ) +file( GLOB _icon_files *-*.png *-*.mng *-*.svg* ) +foreach( _icon_file ${_icon_files} ) + string( REGEX REPLACE ".*-([^.]*)\\.(png|mng|svg.*)$" "\\1" _icon ${_icon_file} ) + if( NOT "${_icon}" STREQUAL "${PROJECT_NAME}" ) + list( APPEND _other_icons "${_icon}" ) + endif( ) +endforeach( ) + +if( _other_icons ) + list( SORT _other_icons ) + list( REMOVE_DUPLICATES _other_icons ) + + tde_install_icons( ${_other_icons} DESTINATION "${DATA_INSTALL_DIR}/${PROJECT_NAME}/icons" ) +endif( ) |