~unity-2d-team/unity-2d/natty

360.1.6 by Florian Boucault
Renamed unity-qt into unity-2d
1
project(unity-2d)
101 by Aurelien Gateau
Moved all unity-qt-launcher code to a launcher/ dir
2
cmake_minimum_required(VERSION 2.8)
3
4
# Dirs
360.1.6 by Florian Boucault
Renamed unity-qt into unity-2d
5
set(UNITY_2D_DIR share/unity-2d)
284.1.10 by Florian Boucault
Respect camelCasing for variables.
6
set(UNITY_DIR /usr/share/unity/)
101 by Aurelien Gateau
Moved all unity-qt-launcher code to a launcher/ dir
7
8
configure_file(config.h.in config.h)
9
105 by Aurelien Gateau
Merged in panel
10
# Build flags
11
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Woverloaded-virtual -Wall -std=c++0x")
571.1.1 by Florian Boucault
Added compilation flags to help detecting use of deprecated GTK APIs and direct access to object fields.
12
# Flags to help detecting use of deprecated GTK APIs and direct access to object fields
13
# https://live.gnome.org/GnomeGoals/RemoveDeprecatedSymbols/GTK+
14
# https://live.gnome.org/GnomeGoals/UseGseal
15
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGSEAL_ENABLE -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED")
105 by Aurelien Gateau
Merged in panel
16
101 by Aurelien Gateau
Moved all unity-qt-launcher code to a launcher/ dir
17
# Dependencies
18
include(FindPkgConfig)
19
find_package(Qt4 REQUIRED)
359.12.1 by Aurelien Gateau
Started to create libunity-2d
20
find_package(X11 REQUIRED)
392.3.6 by Aurelien Gateau
Started to setup cmake rules for translations
21
find_package(Gettext REQUIRED)
101 by Aurelien Gateau
Moved all unity-qt-launcher code to a launcher/ dir
22
104 by Aurelien Gateau
Factorize definition of include directories
23
include_directories(
24
    ${CMAKE_BINARY_DIR}
25
    ${QT_INCLUDE_DIR}
26
    ${QT_QTCORE_INCLUDE_DIR}
27
    ${QT_QTDBUS_INCLUDE_DIR}
28
    ${QT_QTDECLARATIVE_INCLUDE_DIR}
29
    ${QT_QTXML_INCLUDE_DIR}
30
    ${QT_QTGUI_INCLUDE_DIR}
552.1.1 by Florian Boucault
[dash, launcher, spread] Added a new command line switch (-opengl) that triggers the use of a QGLWidget for the QML viewport.
31
    ${QT_QTOPENGL_INCLUDE_DIR}
359.12.1 by Aurelien Gateau
Started to create libunity-2d
32
    ${X11_INCLUDE_DIR}
104 by Aurelien Gateau
Factorize definition of include directories
33
    )
34
359.12.14 by Aurelien Gateau
Unbreak "make check"
35
# Tests
36
add_custom_target(check)
37
101 by Aurelien Gateau
Moved all unity-qt-launcher code to a launcher/ dir
38
# Source
359.30.1 by Aurelien Gateau
Renamed libunity-2d to libunity-2d-private
39
add_subdirectory(libunity-2d-private)
101 by Aurelien Gateau
Moved all unity-qt-launcher code to a launcher/ dir
40
add_subdirectory(launcher)
105 by Aurelien Gateau
Merged in panel
41
add_subdirectory(panel)
115 by Florian Boucault
Added experimental places:
42
add_subdirectory(places)
319.5.1 by Ugo Riboni
First impementation of the spread/expose functionality.
43
add_subdirectory(spread)
392.3.6 by Aurelien Gateau
Started to setup cmake rules for translations
44
add_subdirectory(po)