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
Akregator
Commits
b15f25c1
Commit
b15f25c1
authored
Jun 07, 2021
by
Laurent Montel
Browse files
GIT_SILENT: Use cmake target centric
parent
3f060ceb
Pipeline
#64677
passed with stage
in 8 minutes and 15 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
export/CMakeLists.txt
View file @
b15f25c1
...
...
@@ -3,8 +3,8 @@ include_directories(
${
CMAKE_CURRENT_BINARY_DIR
}
)
add_executable
(
akregatorstorageexporter
akregatorstorageexporter.cpp
)
add_executable
(
akregatorstorageexporter
)
target_sources
(
akregatorstorageexporter PRIVATE akregatorstorageexporter.cpp
)
target_link_libraries
(
akregatorstorageexporter
KF5::Syndication
akregatorinterfaces
...
...
interfaces/CMakeLists.txt
View file @
b15f25c1
########### next target ###############
add_library
(
akregatorinterfaces
)
set
(
akregatorinterfaces
_LIB_SRCS
target_sources
(
akregatorinterfaces
PRIVATE
command.cpp
feedlistmanagementinterface.cpp
plugin.cpp
...
...
@@ -9,27 +10,24 @@ set(akregatorinterfaces_LIB_SRCS
set
(
akregatorinterfaces_userfeedback_LIB_SRCS
)
if
(
TARGET KUserFeedbackWidgets
)
set
(
akregatorinterfaces_userfeedback_LIB_SRCS
${
akregatorinterfaces_userfeedback_LIB_SRCS
}
target_sources
(
akregatorinterfaces PRIVATE
userfeedback/userfeedbackmanager.cpp
userfeedback/akregatoruserfeedbackprovider.cpp
)
endif
()
kconfig_add_kcfg_files
(
akregatorinterfaces
_LIB_SRCS
akregatorconfig.kcfgc
)
kconfig_add_kcfg_files
(
akregatorinterfaces akregatorconfig.kcfgc
)
add_library
(
akregatorinterfaces
${
akregatorinterfaces_LIB_SRCS
}
${
akregatorinterfaces_userfeedback_LIB_SRCS
}
)
generate_export_header
(
akregatorinterfaces BASE_NAME akregatorinterfaces
)
set
(
akregator_userfeedback_LIB
)
if
(
TARGET KUserFeedbackWidgets
)
set
(
akregator_userfeedback_LIB
KUserFeedbackWidgets
)
target_link_libraries
(
akregatorinterfaces
KUserFeedbackWidgets
)
endif
()
target_link_libraries
(
akregatorinterfaces
KF5::ConfigGui
Qt::Widgets
${
akregator_userfeedback_LIB
}
)
if
(
COMPILE_WITH_UNITY_CMAKE_SUPPORT
)
set_target_properties
(
akregatorinterfaces PROPERTIES UNITY_BUILD ON
)
...
...
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