~phablet-team/sync-monitor/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
project(synq)

cmake_minimum_required(VERSION 2.8.9)

include(FindPkgConfig)
include(GNUInstallDirs)

find_package(Qt5Core REQUIRED)
find_package(Qt5DBus REQUIRED)
find_package(Qt5Network REQUIRED)
find_package(Qt5Organizer REQUIRED)
add_definitions(-DQT_NO_KEYWORDS)

pkg_check_modules(ACCOUNTS REQUIRED accounts-qt5>=1.10)
pkg_check_modules(URLDISPATCHER REQUIRED url-dispatcher-1)
pkg_check_modules(LIBNOTIFY libnotify)
pkg_check_modules(LIBSIGNON REQUIRED libsignon-qt5)

find_program(INTLTOOL_MERGE_EXECUTABLE intltool-merge)
find_program(INTLTOOL_EXTRACT_EXECUTABLE intltool-extract)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)

configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
               "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
               IMMEDIATE @ONLY)
add_custom_target(uninstall "${CMAKE_COMMAND}"
                  -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")

enable_testing()
add_subdirectory(3rd_party)
add_subdirectory(src)
add_subdirectory(authenticator)
add_subdirectory(accounts)
add_subdirectory(templates)
add_subdirectory(tests)
add_subdirectory(po)
add_subdirectory(Ubuntu)
add_subdirectory(upstart)

configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)