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
KSmtp
Commits
21100c9d
Commit
21100c9d
authored
May 18, 2021
by
Laurent Montel
😁
Browse files
Use more target-centric cmake code
parent
deb6d3c4
Pipeline
#62383
passed with stage
in 3 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/CMakeLists.txt
View file @
21100c9d
set
(
ksmtp_SRCS
add_library
(
KPimSMTP
)
add_library
(
KPim::SMTP ALIAS KPimSMTP
)
target_sources
(
KPimSMTP PRIVATE
job.cpp
loginjob.cpp
sendjob.cpp
...
...
@@ -7,18 +10,16 @@ set(ksmtp_SRCS
sessionuiproxy.cpp
)
ecm_qt_declare_logging_category
(
ksmtp_SRCS
HEADER ksmtp_debug.h
ecm_qt_declare_logging_category
(
KPimSMTP
HEADER ksmtp_debug.h
IDENTIFIER KSMTP_LOG CATEGORY_NAME org.kde.pim.ksmtp
DESCRIPTION
"ksmtp (ksmtp)"
EXPORT KSMTP
)
add_library
(
KPimSMTP
${
ksmtp_SRCS
}
)
if
(
COMPILE_WITH_UNITY_CMAKE_SUPPORT
)
set_target_properties
(
KPimSMTP PROPERTIES UNITY_BUILD ON
)
endif
()
generate_export_header
(
KPimSMTP BASE_NAME ksmtp
)
add_library
(
KPim
::
SMTP
ALIAS KPimSMTP
)
generate_export_header
(
KPimSMTP
BASE_NAME ksmtp
)
target_include_directories
(
KPimSMTP INTERFACE
"$<INSTALL_INTERFACE:
${
KDE_INSTALL_INCLUDEDIR
}
/KPim/KSMTP;
${
KDE_INSTALL_INCLUDEDIR
}
/KPim/KSMTP/ksmtp>"
)
if
(
WIN32
)
...
...
Write
Preview
Markdown
is supported
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