~gotwig/gazette/global-service-states

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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Check http://webdev.elementaryos.org/docs/developer-guide/cmake for documentation

set (NAME gazette)

project (${NAME})
cmake_minimum_required (VERSION 2.8)
cmake_policy (VERSION 2.6)

list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/vala)

set (CMAKE_INSTALL_PREFIX /usr)

#enable_testing ()
include(GNUInstallDirs)

set (DATADIR "${CMAKE_INSTALL_PREFIX}/share")
set (PKGDATADIR "${DATADIR}/${NAME}")
set (PLUGINDIR "${CMAKE_INSTALL_FULL_LIBDIR}/gazette/plugins")
set (GETTEXT_PACKAGE "${NAME}")
set (RELEASE_NAME "Simple and functional.")
set (VERSION "0.1")
set (VERSION_INFO "Release")
set (CMAKE_C_FLAGS "-ggdb")
set (PREFIX ${CMAKE_INSTALL_PREFIX})
set (DOLLAR "$")

list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)

configure_file (${CMAKE_SOURCE_DIR}/src/Config.vala.cmake ${CMAKE_BINARY_DIR}/src/Config.vala)
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")

find_package(PkgConfig)
pkg_check_modules(DEPS REQUIRED goa-1.0 libgdata libsoup-2.4 pantheon granite clutter-gtk-1.0 zeitgeist-1.0 gmodule-2.0 libgtop-2.0 gio-2.0)

link_libraries(${DEPS_LIBRARIES})
link_directories(${DEPS_LIBRARY_DIRS})

add_definitions (${DEPS_CFLAGS})

find_package(Vala REQUIRED)
include(ValaVersion)
ensure_vala_version("0.16.0" MINIMUM)
include(ValaPrecompile)
include(GSettings)

add_subdirectory (lib)
add_subdirectory (src)
add_subdirectory (plugins)
add_subdirectory (po)
add_subdirectory (plug)

add_schema ("data/org.pantheon.gazette.gschema.xml")


#install(TARGETS ${NAME} RUNTIME DESTINATION /opt/extras.ubuntu.com/${NAME}/bin)
#install (FILES ${CMAKE_BINARY_DIR}/gazette DESTINATION bin)
install (FILES data/gazetteweather.ttf DESTINATION share/fonts/truetype)
install (FILES data/gazette.desktop DESTINATION /etc/xdg/autostart)