2014-11-28 22:46:21 +00:00
|
|
|
project(ariya-icons NONE)
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
2015-10-29 11:24:56 +02:00
|
|
|
set(ARIYA_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share/icons/ariya")
|
2014-11-28 22:46:21 +00:00
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
2015-10-29 11:24:56 +02:00
|
|
|
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()
|