pkg_check_modules(LIBNOTIFY libnotify REQUIRED) pkg_check_modules(GLIB20 glib-2.0 REQUIRED) include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR} ${LomiriOnlineAccountsService_SOURCE_DIR} ${GLIB20_INCLUDE_DIRS} ${LIBNOTIFY_INCLUDE_DIRS} ) # tst_notification set(TEST tst_notification) set(SOURCES ${LomiriOnlineAccountsService_SOURCE_DIR}/notification.cpp tst_notification.cpp ) add_definitions(-DQT_NO_KEYWORDS) add_executable(${TEST} ${SOURCES}) target_link_libraries(${TEST} Qt${QT_VERSION}::Core Qt${QT_VERSION}::Test ${GLIB20_LIBRARIES} ${LIBNOTIFY_LIBRARIES} ) add_test(${TEST} ${CMAKE_CURRENT_BINARY_DIR}/${TEST})