From 452ac8d007d55ef282546c0ee3871bf50dd49917 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 20 Jun 2013 18:06:06 -0500 Subject: add cmake rules to install the icon files --- data/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'data/CMakeLists.txt') diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index d8f338b..de6942d 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -40,3 +40,18 @@ set (UNITY_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/share/unity") install (FILES ${UNITY_INDICATOR_PATH} DESTINATION "${UNITY_INSTALL_PREFIX}/indicators") + +## +## Icons +## + +if(${LOCAL_INSTALL}) + set (ICON_PREFIX "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/libindicator/icons/") +else() + EXEC_PROGRAM(${PKG_CONFIG_EXECUTABLE} ARGS indicator3-0.4 --variable iconsdir OUTPUT_VARIABLE ICON_PREFIX) +endif() +set (ICON_DIR "${ICON_PREFIX}/hicolor") +message ("Installing icons to ${ICON_DIR}") +install (DIRECTORY icons + DESTINATION ${ICON_DIR} + FILES_MATCHING PATTERN "*.png" PATTERN "*.svg") -- cgit v1.2.3