summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorjuho <juho80.son@samsung.com>2012-08-22 16:26:22 +0900
committerjuho <juho80.son@samsung.com>2012-08-22 16:26:22 +0900
commitb6c8e9cede3881773890a622d73adf8331c1dbc9 (patch)
treef11d59c1ab962cc838229d7dda9fdf0e6ffd20e6 /CMakeLists.txt
parent1cfb7d9b5e1e79b51848aaa6ab0d0bb7adb8ecdf (diff)
downloadcrash-worker-sdk-master.tar.gz
crash-worker-sdk-master.tar.bz2
crash-worker-sdk-master.zip
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt20
1 files changed, 9 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 973adda..0259847 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,16 +8,16 @@ SET(SRCS
)
SET(VENDOR "tizen")
-SET(PACKAGE ${PROJECT_NAME})
-SET(PKGNAME "org.${VENDOR}.${PACKAGE}")
+SET(PACKAGE "crash-worker")
+SET(PKGNAME "org.tizen.crash-worker")
SET(EXENAME "crash-worker")
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-SET(BINDIR "${PREFIX}/bin")
-SET(RESDIR "${PREFIX}/res")
+SET(BINDIR "${PREFIX}/apps/${PKGNAME}/bin")
+SET(RESDIR "${PREFIX}/apps/${PKGNAME}/res")
SET(DATADIR "${PREFIX}/data")
SET(LOCALEDIR "${RESDIR}/locale")
-SET(ICONDIR "${RESDIR}/icons/default/small")
-SET(IMAGEDIR "${RESDIR}/images/${PACKAGE}")
+SET(ICONDIR "${PREFIX}/share/icons/default/small")
+SET(IMAGEDIR "${RESDIR}/images/crash-worker")
SET(EDJDIR "${RESDIR}/edje")
IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
@@ -73,12 +73,10 @@ SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed")
ADD_EXECUTABLE(${EXENAME} ${SRCS})
TARGET_LINK_LIBRARIES(${EXENAME} ${pkgs_LDFLAGS})
+INSTALL(TARGETS ${EXENAME} DESTINATION ${BINDIR})
-INSTALL(TARGETS ${EXENAME} DESTINATION /usr/bin)
-
-# install desktop file & icon
-CONFIGURE_FILE(${PKGNAME}.desktop.in ${CMAKE_BINARY_DIR}/${PKGNAME}.desktop)
-INSTALL(FILES ${CMAKE_BINARY_DIR}/${PKGNAME}.desktop DESTINATION /opt/share/applications)
+# install xml file & icon
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/${PKGNAME}.xml DESTINATION ${PREFIX}/share/packages)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/${PKGNAME}.png DESTINATION ${ICONDIR})
# data