Commit 61b5e733 authored by Laurent Montel's avatar Laurent Montel 😁

Add unittest

parent 5cf10aee
......@@ -21,6 +21,8 @@ include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECompilerSettings)
include(KDECMakeSettings)
include(ECMAddTests)
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
add_definitions(-DTRANSLATION_DOMAIN="kdebugsettings")
......
# convenience macro to add qtest unit tests
macro(add_unittest _source _additionalsource)
set(_test ${_source} ${_additionalsource})
get_filename_component(_name ${_source} NAME_WE)
add_executable( ${_name} ${_test} )
add_test( ${_name} ${_name} )
ecm_mark_as_test(kdebugsettings-${_name})
target_link_libraries( ${_name}
Qt5::Test
KF5::I18n
Qt5::Widgets
)
endmacro ()
add_unittest( kdebugsettingsdialogtest.cpp "")
......@@ -12,5 +12,5 @@ install(TARGETS kdebugsettings ${INSTALL_TARGETS_DEFAULT_ARGS} )
########### install files ###############
#install( PROGRAMS org.kde.klines.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( PROGRAMS org.kde.kdebugsettings.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment