Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KIMAP
Commits
b1611adc
Commit
b1611adc
authored
Aug 17, 2022
by
Laurent Montel
Browse files
Use Qt:: directly
parent
8f4d4921
Pipeline
#218901
passed with stage
in 14 minutes and 11 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
autotests/CMakeLists.txt
View file @
b1611adc
...
...
@@ -11,7 +11,7 @@ macro(KIMAP_UNIT_TESTS)
add_executable
(
${
_testname
}
${
_testname
}
.cpp
)
add_test
(
NAME
${
_testname
}
COMMAND
${
_testname
}
)
ecm_mark_as_test
(
${
_testname
}
)
target_link_libraries
(
${
_testname
}
KF5IMAP Qt
${
QT_MAJOR_VERSION
}
::Test kimaptest Qt
${
QT_MAJOR_VERSION
}
::Network
)
target_link_libraries
(
${
_testname
}
KF5IMAP Qt
::Test kimaptest Qt
::Network
)
set_target_properties
(
${
_testname
}
PROPERTIES COMPILE_FLAGS -DTEST_DATA=
"
\\
"
${
CMAKE_CURRENT_SOURCE_DIR
}
\\"
")
set_tests_properties(
${
_testname
}
PROPERTIES RUN_SERIAL TRUE)
endforeach()
...
...
autotests/kimaptest/CMakeLists.txt
View file @
b1611adc
...
...
@@ -16,7 +16,7 @@ endif()
generate_export_header
(
kimaptest
)
add_library
(
KF5::kimaptest ALIAS kimaptest
)
target_include_directories
(
KF5IMAP INTERFACE
"$<INSTALL_INTERFACE:
${
KDE_INSTALL_INCLUDEDIR_KF
}
/KIMAPTest>"
)
target_link_libraries
(
kimaptest KF5IMAP Qt
${
QT_MAJOR_VERSION
}
::Test Qt
${
QT_MAJOR_VERSION
}
::Network Qt
${
QT_MAJOR_VERSION
}
::Core KF5::CoreAddons KF5::KIOCore KF5::I18n
)
target_link_libraries
(
kimaptest KF5IMAP Qt
::Test Qt::Network Qt
::Core KF5::CoreAddons KF5::KIOCore KF5::I18n
)
install
(
TARGETS kimaptest EXPORT KF5IMAPTargets
${
KF5_INSTALL_TARGETS_DEFAULT_ARGS
}
)
...
...
src/CMakeLists.txt
View file @
b1611adc
...
...
@@ -127,7 +127,7 @@ target_link_libraries(KF5IMAP
PUBLIC
KF5::Mime
KF5::CoreAddons
Qt
${
QT_MAJOR_VERSION
}
::Network
Qt::Network
PRIVATE
KF5::KIOCore
KF5::Codecs
...
...
tests/CMakeLists.txt
View file @
b1611adc
...
...
@@ -3,7 +3,7 @@
kde_enable_exceptions
()
add_executable
(
testimapidle testimapidle.cpp
)
target_link_libraries
(
testimapidle KF5IMAP Qt
${
QT_MAJOR_VERSION
}
::Test KF5::KIOCore Qt
${
QT_MAJOR_VERSION
}
::Network
)
target_link_libraries
(
testimapidle KF5IMAP Qt::Test KF5::KIOCore Qt::Network
)
add_executable
(
testimapserver testimapserver.cpp
)
target_link_libraries
(
testimapserver KF5IMAP Qt
${
QT_MAJOR_VERSION
}
::Test KF5::KIOCore Qt
${
QT_MAJOR_VERSION
}
::Network
)
target_link_libraries
(
testimapserver KF5IMAP Qt::Test KF5::KIOCore Qt::Network
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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