File: CMakeLists.txt

package info (click to toggle)
knotifications 5.78.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,244 kB
  • sloc: cpp: 5,507; java: 260; xml: 132; sh: 14; makefile: 12
file content (21 lines) | stat: -rw-r--r-- 571 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
include(ECMMarkAsTest)

macro(knotifications_executable_tests)
  foreach(_testname ${ARGN})
    add_executable(${_testname} ${_testname}.cpp)
    target_link_libraries(${_testname} Qt5::DBus KF5::Notifications)
    ecm_mark_as_test(${_testname})
  endforeach(_testname)
endmacro()

if (TARGET Qt5::DBus)
    knotifications_executable_tests(
        knotificationrestrictionstest
        kpassivepopuptest
        unitylaunchertest
        kstatusnotifieritemtest
        knotificationdbustest
    )

    target_link_libraries(kpassivepopuptest KF5::WindowSystem)
endif()