30
by Andrea Cimitan
Some changes, renaming and new tests |
1 |
project(settings-components) |
2
by Andrea Cimitan
Initial CMakeLists.txt |
2 |
cmake_minimum_required(VERSION 2.8.9) |
3 |
||
49.1.1
by Nick Dedekind
Moved SettingsComponents to Ubuntu/SettingsComponents. rerigged test framework. |
4 |
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules) |
5 |
||
2
by Andrea Cimitan
Initial CMakeLists.txt |
6 |
# Install paths
|
7 |
include(GNUInstallDirs) |
|
8 |
||
9 |
include(FindPkgConfig) |
|
10 |
||
11 |
find_package(Qt5Quick REQUIRED) |
|
103.1.5
by Michał Sawicz
Clean up main CMakeLists.txt |
12 |
|
13 |
set(QT_IMPORTS_DIR ${CMAKE_INSTALL_LIBDIR}/qt5/qml) |
|
2
by Andrea Cimitan
Initial CMakeLists.txt |
14 |
|
15 |
find_package(Qt5Core REQUIRED) |
|
103.1.5
by Michał Sawicz
Clean up main CMakeLists.txt |
16 |
find_package(Qt5Qml REQUIRED) |
2
by Andrea Cimitan
Initial CMakeLists.txt |
17 |
find_package(Qt5Quick REQUIRED) |
103.1.5
by Michał Sawicz
Clean up main CMakeLists.txt |
18 |
find_package(Qt5Test REQUIRED) |
2
by Andrea Cimitan
Initial CMakeLists.txt |
19 |
find_package(Qt5Widgets REQUIRED) |
20 |
add_definitions(-DQT_NO_KEYWORDS) |
|
21 |
||
22 |
set(CMAKE_INCLUDE_CURRENT_DIR ON) |
|
23 |
set(CMAKE_AUTOMOC ON) |
|
24 |
||
50.2.2
by Nick Dedekind
Added runtest script. Fixed up coverage and qmltest targets. |
25 |
# enable QML debugging
|
26 |
string(TOLOWER "${CMAKE_BUILD_TYPE}" cmake_build_type_lower) # Build types should always be lowercase but sometimes they are not. |
|
27 |
if(cmake_build_type_lower MATCHES "debug") |
|
28 |
add_definitions(-DQT_QML_DEBUG) |
|
29 |
endif() |
|
30 |
||
103.1.5
by Michał Sawicz
Clean up main CMakeLists.txt |
31 |
# Quiet logger
|
32 |
set(QUIET_LOGGER OFF CACHE BOOL "Disable test output on stdout.") |
|
33 |
if(NOT QUIET_LOGGER) |
|
34 |
set(STDOUT_LOGGER "-o" "-,txt") |
|
2
by Andrea Cimitan
Initial CMakeLists.txt |
35 |
endif() |
36 |
||
75.2.8
by Nick Dedekind
made tryTEST_TARGET work |
37 |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden") |
38 |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-permissive -pedantic -Wall -Wextra") |
|
39 |
||
40 |
if ("${CMAKE_BUILD_TYPE}" STREQUAL "release" OR "${CMAKE_BUILD_TYPE}" STREQUAL "relwithdebinfo") |
|
41 |
option(Werror "Treat warnings as errors" ON) |
|
42 |
else() |
|
43 |
option(Werror "Treat warnings as errors" OFF) |
|
44 |
endif() |
|
45 |
||
46 |
if (Werror) |
|
47 |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") |
|
48 |
endif() |
|
49 |
||
75.2.10
by Nick Dedekind
removed old artwork |
50 |
file(GLOB_RECURSE QML_EXTRA_FILES |
51 |
${CMAKE_SOURCE_DIR}/tests/*.qml |
|
52 |
${CMAKE_SOURCE_DIR}/tests/*.js |
|
53 |
${CMAKE_SOURCE_DIR}/tests/*.jpg |
|
54 |
${CMAKE_SOURCE_DIR}/tests/*.png |
|
55 |
${CMAKE_SOURCE_DIR}/tests/*.sci |
|
56 |
${CMAKE_SOURCE_DIR}/tests/*.svg |
|
57 |
)
|
|
58 |
add_custom_target(qml_fake_target SOURCES ${QML_EXTRA_FILES}) |
|
59 |
||
3
by Andrea Cimitan
Add basic test for ButtonMenu |
60 |
# Tests
|
61 |
enable_testing() |
|
62 |
||
79.3.18
by Nick Dedekind
Moved to plugins to plugins folder. |
63 |
add_subdirectory(plugins) |
75.2.2
by Nick Dedekind
more visual tweaks |
64 |
add_subdirectory(examples) |
3
by Andrea Cimitan
Add basic test for ButtonMenu |
65 |
add_subdirectory(tests) |
93.1.1
by Lukáš Tinkl
setup message extraction, load the catalog from the plugins |
66 |
add_subdirectory(po) |