1
by Robert Ancell
Stand-alone system compositor start |
1 |
# Copyright © 2013 Canonical Ltd.
|
2 |
#
|
|
3 |
# This program is free software: you can redistribute it and/or modify
|
|
4 |
# it under the terms of the GNU General Public License version 3 as
|
|
5 |
# published by the Free Software Foundation.
|
|
6 |
#
|
|
7 |
# This program is distributed in the hope that it will be useful,
|
|
8 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
9 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
10 |
# GNU General Public License for more details.
|
|
11 |
#
|
|
12 |
# You should have received a copy of the GNU General Public License
|
|
13 |
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
14 |
#
|
|
15 |
# Authored by: Robert Ancell <robert.ancell@canonical.com>
|
|
16 |
||
17 |
project(UnitySystemCompisitor) |
|
30.2.1
by Robert Ancell
Add a --version option |
18 |
set(USC_VERSION_MAJOR 0) |
19 |
set(USC_VERSION_MINOR 0) |
|
94.1.1
by Michael Terry
Separate out xmir dependency |
20 |
set(USC_VERSION_PATCH 2) |
30.2.1
by Robert Ancell
Add a --version option |
21 |
set(USC_VERSION "${USC_VERSION_MAJOR}.${USC_VERSION_MINOR}.${USC_VERSION_PATCH}") |
1
by Robert Ancell
Stand-alone system compositor start |
22 |
|
23 |
cmake_minimum_required(VERSION 2.8) |
|
75.1.1
by Robert Ancell
Get GL strings for blacklist |
24 |
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake) |
1
by Robert Ancell
Stand-alone system compositor start |
25 |
|
93.2.1
by Michael Terry
Move com.canonical.Unity.Screen interface from unity-mir to u-s-c |
26 |
include(GNUInstallDirs) |
27 |
||
2
by Robert Ancell
Work on a DM-System compositor protocol |
28 |
# Set location of outputs
|
1
by Robert Ancell
Stand-alone system compositor start |
29 |
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) |
30 |
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib) |
|
31 |
||
30.2.1
by Robert Ancell
Add a --version option |
32 |
add_definitions(-DUSC_VERSION="${USC_VERSION}") |
33 |
||
93.2.1
by Michael Terry
Move com.canonical.Unity.Screen interface from unity-mir to u-s-c |
34 |
set(CMAKE_AUTOMOC ON) |
35 |
||
9
by Robert Ancell
Fix cxx flags not being set reliably |
36 |
# Use C++11 and warnings
|
37 |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall") |
|
38 |
||
2
by Robert Ancell
Work on a DM-System compositor protocol |
39 |
# Check for Mir server library
|
1
by Robert Ancell
Stand-alone system compositor start |
40 |
find_package(PkgConfig) |
41 |
pkg_check_modules(MIRSERVER REQUIRED mirserver) |
|
2
by Robert Ancell
Work on a DM-System compositor protocol |
42 |
include_directories(${MIRSERVER_INCLUDE_DIRS}) |
95
by Alan Griffiths
Use the Mir libraries detected by pkg_check_modules |
43 |
link_directories(${MIRSERVER_LIBRARY_DIRS}) |
1
by Robert Ancell
Stand-alone system compositor start |
44 |
|
93.2.1
by Michael Terry
Move com.canonical.Unity.Screen interface from unity-mir to u-s-c |
45 |
find_package(Qt5Core) |
46 |
find_package(Qt5DBus) |
|
47 |
||
1
by Robert Ancell
Stand-alone system compositor start |
48 |
# Check for boost
|
49 |
find_package(Boost 1.48.0 COMPONENTS chrono date_time filesystem system thread program_options regex REQUIRED) |
|
2
by Robert Ancell
Work on a DM-System compositor protocol |
50 |
include_directories(${Boost_INCLUDE_DIRS}) |
51 |
||
75.1.1
by Robert Ancell
Get GL strings for blacklist |
52 |
# Check for GL
|
53 |
find_package(GLESv2 REQUIRED) |
|
54 |
include_directories (${GLESv2_INCLUDE_DIRS}) |
|
55 |
||
1
by Robert Ancell
Stand-alone system compositor start |
56 |
add_subdirectory(src/) |