CMakeLists.txt 483 Bytes
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1 2 3 4 5 6
macro(add_autocreatescriptswidget_test _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(sievescriptdebugger-${_name})
Laurent Montel's avatar
Laurent Montel committed
7
  target_link_libraries( ${_name} KF5::KSieveUi Qt5::Test)
Laurent Montel's avatar
Laurent Montel committed
8 9 10
endmacro()

add_autocreatescriptswidget_test(lineeditvalidatortest.cpp "")
Laurent Montel's avatar
Laurent Montel committed
11
add_autocreatescriptswidget_test(includefilelineedittest.cpp "")