Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KPimTextEdit
Commits
575aa2f8
Commit
575aa2f8
authored
Feb 26, 2022
by
Laurent Montel
😁
Browse files
Use macro
parent
0a7a6c33
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/texteditor/commonwidget/autotests/CMakeLists.txt
View file @
575aa2f8
# SPDX-FileCopyrightText: none
# SPDX-License-Identifier: BSD-3-Clause
ecm_add_tests
(
textgotolinewidgettest.cpp
NAME_PREFIX
"kpimtextedit-plaintext-"
LINK_LIBRARIES KF5::PimTextEdit Qt
${
QT_MAJOR_VERSION
}
::Test Qt
${
QT_MAJOR_VERSION
}
::Widgets
)
ecm_add_tests
(
textfindwidgettest.cpp
NAME_PREFIX
"kpimtextedit-plaintext-"
LINK_LIBRARIES KF5::PimTextEdit Qt
${
QT_MAJOR_VERSION
}
::Test Qt
${
QT_MAJOR_VERSION
}
::Widgets
)
macro
(
add_kpimtextedit_commonwidget_unittest _source
)
get_filename_component
(
_name
${
_source
}
NAME_WE
)
ecm_add_test
(
${
_source
}
${
_name
}
.h TEST_NAME
${
_name
}
NAME_PREFIX
"kpimtextedit-plaintext-"
LINK_LIBRARIES Qt
${
QT_MAJOR_VERSION
}
::Test KF5::PimTextEdit Qt
${
QT_MAJOR_VERSION
}
::Widgets
)
endmacro
()
ecm_add_tests
(
textreplacewidgettest.cpp
NAME_PREFIX
"kpimtextedit-plaintext-"
LINK_LIBRARIES KF5::PimTextEdit Qt
${
QT_MAJOR_VERSION
}
::Test Qt
${
QT_MAJOR_VERSION
}
::Widgets
)
add_kpimtextedit_commonwidget_unittest
(
textgotolinewidgettest.cpp
)
add_kpimtextedit_commonwidget_unittest
(
textfindwidgettest.cpp
)
add_kpimtextedit_commonwidget_unittest
(
textreplacewidgettest.cpp
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment