1
by Tom Beckmann
init |
1 |
# Check http://webdev.elementaryos.org/docs/developer-guide/cmake for documentation
|
2 |
||
4
by eduardgotwig at googlemail
i18n support; packaging missing yet; broken gschema support |
3 |
set (NAME gazette) |
1
by Tom Beckmann
init |
4 |
|
5 |
project (${NAME}) |
|
6 |
cmake_minimum_required (VERSION 2.8) |
|
7 |
cmake_policy (VERSION 2.6) |
|
8 |
||
9 |
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/vala) |
|
10 |
||
11 |
set (CMAKE_INSTALL_PREFIX /usr) |
|
12 |
||
4
by eduardgotwig at googlemail
i18n support; packaging missing yet; broken gschema support |
13 |
#enable_testing ()
|
90
by Santiago Ocamica
Fix a security risk by not installing plugins in the home directory. |
14 |
include(GNUInstallDirs) |
1
by Tom Beckmann
init |
15 |
|
16 |
set (DATADIR "${CMAKE_INSTALL_PREFIX}/share") |
|
17 |
set (PKGDATADIR "${DATADIR}/${NAME}") |
|
90
by Santiago Ocamica
Fix a security risk by not installing plugins in the home directory. |
18 |
set (PLUGINDIR "${CMAKE_INSTALL_FULL_LIBDIR}/gazette/plugins") |
1
by Tom Beckmann
init |
19 |
set (GETTEXT_PACKAGE "${NAME}") |
20 |
set (RELEASE_NAME "Simple and functional.") |
|
21 |
set (VERSION "0.1") |
|
22 |
set (VERSION_INFO "Release") |
|
23 |
set (CMAKE_C_FLAGS "-ggdb") |
|
24 |
set (PREFIX ${CMAKE_INSTALL_PREFIX}) |
|
25 |
set (DOLLAR "$") |
|
26 |
||
27 |
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) |
|
28 |
||
29 |
configure_file (${CMAKE_SOURCE_DIR}/src/Config.vala.cmake ${CMAKE_BINARY_DIR}/src/Config.vala) |
|
30 |
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\") |
|
31 |
||
32 |
find_package(PkgConfig) |
|
90
by Santiago Ocamica
Fix a security risk by not installing plugins in the home directory. |
33 |
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) |
1
by Tom Beckmann
init |
34 |
|
35 |
link_libraries(${DEPS_LIBRARIES}) |
|
36 |
link_directories(${DEPS_LIBRARY_DIRS}) |
|
37 |
||
38 |
add_definitions (${DEPS_CFLAGS}) |
|
39 |
||
40 |
find_package(Vala REQUIRED) |
|
41 |
include(ValaVersion) |
|
42 |
ensure_vala_version("0.16.0" MINIMUM) |
|
43 |
include(ValaPrecompile) |
|
91
by Santiago Ocamica
Removed service specific schemas from gazette core, moved to each service's own folder. Tidied up weather service a bit. Added the ability to use the current location (currently using GeoClue, I'll try to find something better. |
44 |
include(GSettings) |
1
by Tom Beckmann
init |
45 |
|
61
by Santiago Ocamica
Started restructure of the project |
46 |
add_subdirectory (lib) |
47 |
add_subdirectory (src) |
|
48 |
add_subdirectory (plugins) |
|
1
by Tom Beckmann
init |
49 |
add_subdirectory (po) |
87
by Santiago Ocamica
Separated the plug from gazette code. Made the welcome message optional. |
50 |
add_subdirectory (plug) |
1
by Tom Beckmann
init |
51 |
|
4
by eduardgotwig at googlemail
i18n support; packaging missing yet; broken gschema support |
52 |
add_schema ("data/org.pantheon.gazette.gschema.xml") |
1
by Tom Beckmann
init |
53 |
|
54 |
||
55 |
#install(TARGETS ${NAME} RUNTIME DESTINATION /opt/extras.ubuntu.com/${NAME}/bin)
|
|
4
by eduardgotwig at googlemail
i18n support; packaging missing yet; broken gschema support |
56 |
#install (FILES ${CMAKE_BINARY_DIR}/gazette DESTINATION bin)
|
33
by eduardgotwig at googlemail
Add rule to install iconfont |
57 |
install (FILES data/gazetteweather.ttf DESTINATION share/fonts/truetype) |
99.1.1
by gotwig at ubuntu
Add switcher for adding to autostart and activating welcome screen |
58 |
install (FILES data/gazette.desktop DESTINATION /etc/xdg/autostart) |