summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2015-07-29 11:57:36 (GMT)
committerMinkyu Kang <mk7.kang@samsung.com>2015-07-29 11:57:36 (GMT)
commita3e51c1ad65199153745fcfe9f929b2fce7254f5 (patch)
tree85d98765b9ac7fc651d3014c815da0d0a8ae53b0 /CMakeLists.txt
parent7b48a0b1f88222530d9a746cf2c87566cffbe1dd (diff)
downloadair_mediahub-a3e51c1ad65199153745fcfe9f929b2fce7254f5.zip
air_mediahub-a3e51c1ad65199153745fcfe9f929b2fce7254f5.tar.gz
air_mediahub-a3e51c1ad65199153745fcfe9f929b2fce7254f5.tar.bz2
Change-Id: Ibb7da31e6ae598c91987e9c191047f451c003fe5 Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9245e39..e6c18cf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,6 +46,12 @@ ENDIF(NOT DEFINED IMAGEDIR)
IF(NOT DEFINED PACKAGEDIR)
SET(PACKAGEDIR "/usr/share/packages")
ENDIF(NOT DEFINED PACKAGEDIR)
+IF(NOT DEFINED DESKTOP_ICONDIR)
+ SET(DESKTOP_ICONDIR "/usr/share/icons")
+ENDIF(NOT DEFINED DESKTOP_ICONDIR)
+IF(NOT DEFINED DESKTOP_ICON)
+ SET(DESKTOP_ICON ${PACKAGE_NAME}.png)
+ENDIF(NOT DEFINED DESKTOP_ICON)
SET(SRCS
src/main.c
@@ -90,4 +96,6 @@ CONFIGURE_FILE(${PACKAGE_NAME}.xml.in ${PACKAGE_NAME}.xml)
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR})
INSTALL(FILES ${PACKAGE_NAME}.xml DESTINATION ${PACKAGEDIR})
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/images DESTINATION ${RESDIR})
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/${DESKTOP_ICON} DESTINATION ${DESKTOP_ICONDIR})
+INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/images DESTINATION ${RESDIR})
ADD_SUBDIRECTORY(res/edc)