12
12
set(APP_NAME calendar)
13
13
set(DESKTOP_FILE "${PROJECT_NAME}_${APP_NAME}.desktop")
14
set(APPLICATION_FILE "${PROJECT_NAME}_${APP_NAME}.application")
14
15
set(URLS_FILE "${PROJECT_NAME}_${APP_NAME}.url-dispatcher")
15
16
set(MAIN_QML calendar.qml)
16
17
set(ICON_FILE calendar-app@30.png)
22
23
if(NOT DEFINED BZR_SOURCE)
23
set(BZR_SOURCE "lp:ubuntu-${APP_HARDCODE}")
24
message("-- Setting BZR_SOURCE to ${BZR_SOURCE}")
24
set(BZR_SOURCE "lp:ubuntu-${APP_HARDCODE}")
25
message("-- Setting BZR_SOURCE to ${BZR_SOURCE}")
25
26
endif(NOT DEFINED BZR_SOURCE)
26
27
set(CMAKE_INSTALL_PREFIX /)
27
28
set(CMAKE_INSTALL_BINDIR /)
29
set (ICON ${ICON_FILE})
30
set(EXEC "qmlscene %u ${MAIN_QML}")
31
set(DESKTOP_DIR ${DATA_DIR})
32
set(URLS_DIR ${DATA_DIR})
30
set(ICON ${ICON_FILE})
31
set(EXEC "qmlscene %u ${MAIN_QML}")
32
set(DESKTOP_DIR ${DATA_DIR})
33
set(URLS_DIR ${DATA_DIR})
34
set(APPLICATION_DIR ${DATA_DIR})
34
set(DATA_DIR ${CMAKE_INSTALL_DATADIR}/${APP_HARDCODE})
35
set(EXEC ${APP_HARDCODE})
36
set(ICON ${CMAKE_INSTALL_PREFIX}/${DATA_DIR}/${ICON_FILE})
37
configure_file(${APP_HARDCODE}.in
38
${CMAKE_CURRENT_BINARY_DIR}/${APP_HARDCODE})
39
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${APP_HARDCODE}
40
DESTINATION ${CMAKE_INSTALL_BINDIR})
41
set(DESKTOP_DIR ${CMAKE_INSTALL_DATADIR}/applications)
42
set(URLS_DIR ${CMAKE_INSTALL_DATADIR}/url-dispatcher/urls)
36
set(DATA_DIR ${CMAKE_INSTALL_DATADIR}/${APP_HARDCODE})
37
set(EXEC ${APP_HARDCODE})
38
set(ICON ${CMAKE_INSTALL_PREFIX}/${DATA_DIR}/${ICON_FILE})
39
configure_file(${APP_HARDCODE}.in
40
${CMAKE_CURRENT_BINARY_DIR}/${APP_HARDCODE})
41
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${APP_HARDCODE}
42
DESTINATION ${CMAKE_INSTALL_BINDIR})
43
set(DESKTOP_DIR ${CMAKE_INSTALL_DATADIR}/applications)
44
set(URLS_DIR ${CMAKE_INSTALL_DATADIR}/url-dispatcher/urls)
45
set(APPLICATION_DIR ${CMAKE_INSTALL_DATADIR}/accounts/applications)
45
48
file(GLOB_RECURSE I18N_SRC_FILES