akondi-mime5/akonadi-mime5/tests/CMakeLists.txt
Ward from fusion-voyager-3 a8e7e301c1
Some checks failed
PikaOS Package Build & Release (Canary) (amd64-v3) / build (push) Failing after 12s
fixx akondi
2024-08-05 17:19:50 +03:00

20 lines
741 B
CMake

# SPDX-FileCopyrightText: none
# SPDX-License-Identifier: BSD-3-Clause
find_package(Qt${QT_MAJOR_VERSION} ${QT_REQUIRED_VERSION} CONFIG REQUIRED COMPONENTS Test Widgets)
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
add_executable( requester foldersrequester.cpp foldersrequester.h )
target_link_libraries( requester KF5::AkonadiMime KF5::I18n Qt::Widgets )
# convenience macro to add akonadi demo application
macro(add_akonadimime_demo _source)
set(_test ${_source})
get_filename_component(_name ${_source} NAME_WE)
add_executable(${_name} ${_test})
target_link_libraries(${_name} KF5AkonadiMime KF5::Mime KF5::AkonadiCore KF5::I18n Qt::Widgets)
endmacro()
# demo applications
add_akonadimime_demo(headfetcher.cpp)