mirror of
https://bitbucket.org/smil3y/ariya-icons.git
synced 2025-02-23 10:32:47 +00:00
30 lines
789 B
CMake
30 lines
789 B
CMake
project(ariya-icons NONE)
|
|
|
|
cmake_minimum_required(VERSION 2.8.12)
|
|
|
|
set(ARIYA_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share/icons/ariya")
|
|
|
|
########### install files ###############
|
|
|
|
set(icon_dirs 8x8 16x16 22x22 32x32 48x48 64x64 128x128)
|
|
|
|
install(
|
|
DIRECTORY ${icon_dirs}
|
|
DESTINATION ${ARIYA_INSTALL_DIR}
|
|
PATTERN ".git" EXCLUDE
|
|
PATTERN "*.sh" EXCLUDE
|
|
)
|
|
install(FILES index.theme DESTINATION ${ARIYA_INSTALL_DIR})
|
|
|
|
macro(COPY_ICONS _srcdir _srcfile _destdir)
|
|
set(_src "${_srcdir}/${_srcfile}")
|
|
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${_src}")
|
|
foreach(_dest ${ARGN})
|
|
install(
|
|
FILES "${_src}"
|
|
DESTINATION ${_destdir}/${_srcdir}
|
|
RENAME "${_dest}"
|
|
)
|
|
endforeach()
|
|
endif()
|
|
endmacro()
|