94.1.1
by Marcus Tomlinson
Renamed CMakeLists project name from "unity-scope-hollywood" to "unity-scope-mediascanner" |
1 |
project(unity-scope-mediascanner C CXX) |
4
by James Henstridge
Switch over to cmake based build. |
2 |
cmake_minimum_required(VERSION 2.8.9) |
177.2.2
by James Henstridge
Build music scope as a click package directory. |
3 |
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}") |
4 |
||
5 |
set(VERSION 0.3) |
|
4
by James Henstridge
Switch over to cmake based build. |
6 |
|
7 |
find_package(PkgConfig REQUIRED) |
|
45.1.14
by James Henstridge
Add some basic tests for the music scope. These are fairly limited |
8 |
find_package(Threads REQUIRED) |
106.1.6
by James Henstridge
Add departments to the local videos scope. |
9 |
find_package(Boost COMPONENTS regex REQUIRED) |
177.1.2
by Pawel Stolowski
Link music scope with gio. |
10 |
pkg_check_modules(GIO_DEPS REQUIRED gio-2.0 gio-unix-2.0) |
4
by James Henstridge
Switch over to cmake based build. |
11 |
|
45.1.1
by James Henstridge
A basic port of the media scanner scope over to the new media scanner API. |
12 |
pkg_check_modules(UNITY REQUIRED |
233.1.59
by Pawel Stolowski
Also compare user data in resultUriMatchesCannedQuery test helper function. |
13 |
"libunity-scopes >= 0.6.16"
|
130.3.10
by Pawel Stolowski
Require net-cpp and jsoncpp. |
14 |
net-cpp>=1.1.0
|
15 |
jsoncpp
|
|
247.1.11
by Pawel Stolowski
Require new mediascanner lib |
16 |
mediascanner-2.0>=0.106
|
45.1.1
by James Henstridge
A basic port of the media scanner scope over to the new media scanner API. |
17 |
)
|
48.1.1
by James Henstridge
Add code for old API scope. |
18 |
|
60.1.25
by Michal Hruby
Enable i18n |
19 |
find_program(XGETTEXT_BIN xgettext) |
20 |
find_program(MSGFMT_BIN msgfmt) |
|
21 |
||
86.2.1
by Jussi Pakkanen
Error out if binaries are not found. |
22 |
if(NOT MSGFMT_BIN) |
23 |
message(FATAL_ERROR "Gettext binaries not found.") |
|
24 |
endif() |
|
25 |
||
46.1.5
by James Henstridge
Update warning flags to catch the missing declarations (which would have |
26 |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wmissing-prototypes -pedantic -std=c99") |
27 |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wmissing-declarations -pedantic -std=c++11") |
|
4
by James Henstridge
Switch over to cmake based build. |
28 |
|
29 |
set(DATA_DIR "${CMAKE_CURRENT_SOURCE_DIR}/data") |
|
30 |
||
31 |
set(SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src") |
|
32 |
set(SOURCE_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/src") |
|
33 |
||
34 |
include(GNUInstallDirs) |
|
177.2.2
by James Henstridge
Build music scope as a click package directory. |
35 |
include(ClickBuild) |
36 |
include(ClickScope) |
|
37 |
include(Intltool) |
|
4
by James Henstridge
Switch over to cmake based build. |
38 |
|
45.1.1
by James Henstridge
A basic port of the media scanner scope over to the new media scanner API. |
39 |
set(GETTEXT_PACKAGE unity-scope-mediascanner) |
4
by James Henstridge
Switch over to cmake based build. |
40 |
|
8
by James Henstridge
Some small fixes to makefile. |
41 |
configure_file( |
42 |
"${CMAKE_CURRENT_SOURCE_DIR}/config.h.in"
|
|
43 |
"${CMAKE_CURRENT_BINARY_DIR}/config.h"
|
|
44 |
)
|
|
5
by James Henstridge
Move config.h to base directory. |
45 |
include_directories(${CMAKE_CURRENT_BINARY_DIR}) |
4
by James Henstridge
Switch over to cmake based build. |
46 |
|
60.1.25
by Michal Hruby
Enable i18n |
47 |
add_subdirectory("po") |
177.2.5
by James Henstridge
Move aggregator scopes to their own directories and clickify. |
48 |
add_subdirectory("src/utils") |
49 |
add_subdirectory("src/musicaggregator") |
|
50 |
add_subdirectory("src/videoaggregator") |
|
51 |
add_subdirectory("src/mymusic") |
|
52 |
add_subdirectory("src/myvideos") |
|
6
by James Henstridge
Add "make check" command to build. |
53 |
|
177.2.9
by James Henstridge
Don't run tests when cross compiling. |
54 |
if(NOT CMAKE_CROSSCOMPILING) |
55 |
enable_testing() |
|
56 |
add_subdirectory("tests") |
|
57 |
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} -V --output-on-failure) |
|
58 |
endif() |