Debian Codegraph @

tests/click-hooks/online-accounts-hooks/CMakeLists.txt

raw
1 set(TEST tst_online-accounts-hooks)
2 set(SOURCES
3 tst_online_accounts_hooks.cpp
4 )
5
6 pkg_check_modules(ACCOUNTSQT accounts-qt${QT_VERSION} REQUIRED)
7
8 add_executable(${TEST} ${SOURCES})
9 include_directories(
10 ${CMAKE_CURRENT_BINARY_DIR}
11 ${ACCOUNTSQT_INCLUDE_DIRS}
12 )
13 add_definitions(
14 -DHOOK_PROCESS="${lomiri-online-accounts-hooks_BINARY_DIR}/lomiri-online-accounts-hooks"
15 )
16 add_dependencies(${TEST} lomiri-online-accounts-hooks)
17
18 target_link_libraries(${TEST}
19 Qt${QT_VERSION}::Core
20 Qt${QT_VERSION}::Xml
21 Qt${QT_VERSION}::Test
22 ${ACCOUNTSQT_LIBRARIES}
23 )
24
25 add_test(${TEST} dbus-test-runner -t ${CMAKE_CURRENT_BINARY_DIR}/${TEST})
26 set_tests_properties(${TEST} PROPERTIES ENVIRONMENT QT_QPA_PLATFORM=minimal)