Debian Codegraph @

tests/online-accounts-ui/tst_notification/CMakeLists.txt

raw
1 pkg_check_modules(LIBNOTIFY libnotify REQUIRED)
2 pkg_check_modules(GLIB20 glib-2.0 REQUIRED)
3
4 include_directories(
5 ${CMAKE_CURRENT_SOURCE_DIR}
6 ${CMAKE_SOURCE_DIR}
7 ${LomiriOnlineAccountsService_SOURCE_DIR}
8 ${GLIB20_INCLUDE_DIRS}
9 ${LIBNOTIFY_INCLUDE_DIRS}
10 )
11
12 # tst_notification
13
14 set(TEST tst_notification)
15
16 set(SOURCES
17 ${LomiriOnlineAccountsService_SOURCE_DIR}/notification.cpp
18 tst_notification.cpp
19 )
20
21 add_definitions(-DQT_NO_KEYWORDS)
22
23 add_executable(${TEST} ${SOURCES})
24
25 target_link_libraries(${TEST}
26 Qt${QT_VERSION}::Core
27 Qt${QT_VERSION}::Test
28 ${GLIB20_LIBRARIES}
29 ${LIBNOTIFY_LIBRARIES}
30 )
31
32 add_test(${TEST} ${CMAKE_CURRENT_BINARY_DIR}/${TEST})