~notes-app-dev/reminders-app/trunk

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Tarmac
  • Author(s): David Planella
  • Date: 2014-10-02 16:28:04 UTC
  • mfrom: (215.1.23 account-click)
  • Revision ID: tarmac-20141002162804-ep7znzqf14a4uo0a
Move the account plugin to the click package. Fixes: https://bugs.launchpad.net/bugs/1367235.

Approved by Ubuntu Phone Apps Jenkins Bot, Michael Zanetti, Chris Wayne, Alberto Mardegan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
set(EXEC "reminders")
23
23
set(UBUNTU_MANIFEST_PATH "manifest.json.in" CACHE INTERNAL "Relative path to the manifest file")
24
24
 
 
25
set(ACCOUNT_ICON_DIR ${CMAKE_INSTALL_DATADIR}/icons/hicolor/32x32/apps)
 
26
set(ACCOUNT_PROVIDER_DIR ${CMAKE_INSTALL_DATADIR}/accounts/providers)
 
27
set(ACCOUNT_SERVICE_DIR ${CMAKE_INSTALL_DATADIR}/accounts/services)
 
28
set(ACCOUNT_QML_PLUGIN_DIR ${CMAKE_INSTALL_DATADIR}/accounts/qml-plugins)
 
29
 
25
30
if(CLICK_MODE)
26
31
    if(NOT DEFINED BZR_SOURCE)
27
32
        set(BZR_SOURCE "lp:${APP_HARDCODE}")
38
43
    set(DATA_DIR /)
39
44
    set(DESKTOP_DIR ${DATA_DIR})
40
45
    set(APPLICATION_DIR ${DATA_DIR})
 
46
 
 
47
    # Sets BZR_REVNO
 
48
    execute_process(
 
49
        COMMAND bzr revno ${CMAKE_SOURCE_DIR}
 
50
        OUTPUT_VARIABLE BZR_REVNO
 
51
        OUTPUT_STRIP_TRAILING_WHITESPACE
 
52
    )
41
53
    if(NOT BZR_REVNO)
42
54
        set(BZR_REVNO "latest")
43
55
    endif(NOT BZR_REVNO)