~pkunal-parmar/ubuntu-calendar-app/ICalImport

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2014-09-25 21:34:16 UTC
  • mto: This revision was merged to the branch mainline in revision 483.
  • Revision ID: renato.filho@canonical.com-20140925213416-7znd7v2p3yqzku5m
Install online accounts application file necessary to enable calendar sync.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
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)
20
21
 
21
22
if(CLICK_MODE)
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 /)
28
 
        set(DATA_DIR /)
29
 
        set (ICON ${ICON_FILE})
30
 
        set(EXEC "qmlscene %u ${MAIN_QML}")
31
 
        set(DESKTOP_DIR ${DATA_DIR})
32
 
        set(URLS_DIR ${DATA_DIR})
 
29
    set(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})
33
35
else(CLICK_MODE)
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)
43
46
endif(CLICK_MODE)
44
47
 
45
48
file(GLOB_RECURSE I18N_SRC_FILES
67
70
)
68
71
 
69
72
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE} DESTINATION ${DESKTOP_DIR})
70
 
 
 
73
 
71
74
install(FILES ${URLS_FILE} DESTINATION ${URLS_DIR})
72
75
 
 
76
install(FILES ${APPLICATION_FILE} DESTINATION ${APPLICATION_DIR})
 
77
 
73
78
# Tests
74
79
enable_testing()
75
80