Commit b15f25c1 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIT_SILENT: Use cmake target centric

parent 3f060ceb
Pipeline #64677 passed with stage
in 8 minutes and 15 seconds
......@@ -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
......
########### 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)
......
Markdown is supported
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