diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 20 |
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 |