Commit b9dc166c authored by Laurent Montel's avatar Laurent Montel
Browse files

Fix show includes in qtc6

parent 2d4a0a74
......@@ -6,7 +6,7 @@ add_definitions( -DGRAMMALECTE_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data")
macro(add_kmail_grammalecte_unittest _source)
set( _test ${_source})
get_filename_component(_name ${_source} NAME_WE)
add_executable( ${_name} ${_test} )
add_executable( ${_name} ${_test} ${_name}.h)
add_test(NAME ${_name} COMMAND ${_name} )
ecm_mark_as_test(kmail_grammalecte-${_name})
......
......@@ -4,7 +4,7 @@
macro(add_kmail_grammarcommon_unittest _source)
set( _test ${_source})
get_filename_component(_name ${_source} NAME_WE)
add_executable( ${_name} ${_test} )
add_executable( ${_name} ${_test} ${_name}.h)
add_test(NAME ${_name} COMMAND ${_name} )
ecm_mark_as_test(kmail_grammalecte-${_name})
......
......@@ -3,7 +3,7 @@
macro(add_kmail_antispamplugin_unittest _source _additional)
set( _test ${_source} ${_additional})
get_filename_component(_name ${_source} NAME_WE)
add_executable( ${_name} ${_test} )
add_executable( ${_name} ${_test} ${_name}.h)
add_test(NAME ${_name} COMMAND ${_name} )
ecm_mark_as_test(kmail_antispamplugin-${_name})
......
......@@ -3,7 +3,7 @@
macro(add_kmail_antivirusplugin_unittest _source _additional)
set( _test ${_source} ${_additional})
get_filename_component(_name ${_source} NAME_WE)
add_executable( ${_name} ${_test} )
add_executable( ${_name} ${_test} ${_name}.h)
add_test(NAME ${_name} COMMAND ${_name} )
ecm_mark_as_test(kmail_antivirusplugin-${_name})
......
......@@ -12,6 +12,17 @@ target_sources(mailmerge PRIVATE
widgets/mailmergeutil.cpp
widgets/mailmergepreviewdialog.cpp
widgets/mailmergepreviewwidget.cpp
mailmergedialog.h
widgets/addressbookwidget.h
widgets/attachmentlistwidget.h
widgets/csvwidget.h
widgets/mailmergewidget.h
widgets/selectattachmentdialog.h
widgets/mailmergemenu.h
widgets/mailmergeutil.h
widgets/mailmergepreviewdialog.h
widgets/mailmergepreviewwidget.h
)
generate_export_header(mailmerge BASE_NAME mailmerge)
......
......@@ -4,7 +4,7 @@
macro(add_kmail_mailmergeunittest _source )
set(_test ${_source})
get_filename_component(_name ${_source} NAME_WE)
add_executable( ${_name} ${_test} )
add_executable( ${_name} ${_test} ${_name}.h)
add_test(NAME ${_name} COMMAND ${_name} )
ecm_mark_as_test(kmail-${_name})
target_link_libraries( ${_name}
......
......@@ -7,7 +7,7 @@ add_definitions( -DGRANTLEETHEME_DATA_DIR="${CMAKE_SOURCE_DIR}/examples/messagev
macro(add_messageviewer_header_unittest _source _additional)
set( _test ${_source} utils.cpp ${_additional})
get_filename_component(_name ${_source} NAME_WE)
add_executable( ${_name} ${_test} )
add_executable( ${_name} ${_test} ${_name}.h)
add_test(NAME ${_name} COMMAND ${_name} )
ecm_mark_as_test(messageviewer-header-${_name})
......@@ -19,7 +19,7 @@ endmacro ()
macro(add_messageviewer_header_class_unittest _source )
set( _test ${_source})
get_filename_component(_name ${_source} NAME_WE)
add_executable( ${_name} ${_test} )
add_executable( ${_name} ${_test} ${_name}.h)
add_test(NAME ${_name} COMMAND ${_name} )
ecm_mark_as_test(messageviewer-header-${_name})
......
......@@ -9,7 +9,7 @@ macro(add_plasma_pimeventsplugin_test _source _additional)
${CMAKE_CURRENT_BINARY_DIR}/../pimeventsplugin_debug.cpp
)
get_filename_component(_name ${_source} NAME_WE)
add_executable(${_name} ${_test})
add_executable(${_name} ${_test} ${_name}.h)
add_test(NAME ${_name} COMMAND ${_name})
ecm_mark_as_test(plasma-pimeventsplugin-${_name})
add_definitions(-DPIMEVENT_DATADIR=\"${CMAKE_CURRENT_SOURCE_DIR}\")
......
......@@ -3,7 +3,7 @@
macro(add_templateparserplugin_unittest _source _extrasources)
set(_test ${_source} ${_extrasources})
get_filename_component(_name ${_source} NAME_WE)
add_executable( ${_name} ${_test} )
add_executable( ${_name} ${_test} ${_name}.h)
add_test(NAME ${_name} COMMAND ${_name})
ecm_mark_as_test(templateparserplugin-${_name})
target_link_libraries(${_name}
......
......@@ -3,7 +3,7 @@
macro(add_sieveeditorplugin_unittest _source _additional)
set( _test ${_source} ${_additional} ${sieveeditor_plugin_categories_SRCS})
get_filename_component(_name ${_source} NAME_WE)
add_executable( ${_name} ${_test})
add_executable( ${_name} ${_test} ${_name}.h)
add_test(NAME ${_name} COMMAND ${_name} )
ecm_mark_as_test(sieveeditorplugin-${_name})
......
Supports Markdown
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