~ci-train-bot/ubuntu-system-settings/ubuntu-system-settings-ubuntu-yakkety-landing-060

« back to all changes in this revision

Viewing changes to tests/plugins/notifications/CMakeLists.txt

Implement extended Notifications panel using Gsettings to store notifications settings for each app

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
find_package(Qt5Core REQUIRED)
 
2
find_package(Qt5Gui REQUIRED)
 
3
find_package(Qt5Qml REQUIRED)
 
4
find_package(Qt5Quick REQUIRED)
 
5
find_package(Qt5QuickTest REQUIRED)
 
6
add_definitions(-DTESTS)
 
7
 
 
8
set(XVFB_COMMAND)
 
9
find_program(XVFBRUN xvfb-run)
 
10
if(XVFBRUN)
 
11
  set(XVFB_COMMAND ${XVFBRUN} -s "-screen 0 640x480x24" -a)
 
12
else()
 
13
  message(WARNING "Cannot find xvfb-run.")
 
14
endif()
 
15
 
 
16
set(TEST tst_notifications)
 
17
set(QML_SOURCES tst_PageComponent.qml)
 
18
set(SOURCES tst_QmlTests.cpp)
 
19
 
 
20
add_executable(${TEST} ${SOURCES})
 
21
 
 
22
include_directories(
 
23
    ${CMAKE_CURRENT_BINARY_DIR}
 
24
    ${CMAKE_SOURCE_DIR}/src/
 
25
)
 
26
 
 
27
target_link_libraries(${TEST}
 
28
    Qt5::Core
 
29
    Qt5::Gui
 
30
    Qt5::Qml
 
31
    Qt5::Quick
 
32
    Qt5::QuickTest
 
33
)
 
34
 
 
35
add_test(${TEST} ${XVFB_COMMAND} ${CMAKE_CURRENT_BINARY_DIR}/${TEST}
 
36
    -input ${CMAKE_SOURCE_DIR}/tests/plugins/notifications/
 
37
    -import ${CMAKE_BINARY_DIR}/tests/mocks/
 
38
    -import ${CMAKE_SOURCE_DIR}/tests/plugins/notifications
 
39
    -import ${CMAKE_SOURCE_DIR}/src/
 
40
)