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( ...@@ -3,8 +3,8 @@ include_directories(
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
) )
add_executable(akregatorstorageexporter akregatorstorageexporter.cpp) add_executable(akregatorstorageexporter)
target_sources(akregatorstorageexporter PRIVATE akregatorstorageexporter.cpp)
target_link_libraries(akregatorstorageexporter target_link_libraries(akregatorstorageexporter
KF5::Syndication KF5::Syndication
akregatorinterfaces akregatorinterfaces
......
########### next target ############### ########### next target ###############
add_library(akregatorinterfaces)
set(akregatorinterfaces_LIB_SRCS target_sources(akregatorinterfaces PRIVATE
command.cpp command.cpp
feedlistmanagementinterface.cpp feedlistmanagementinterface.cpp
plugin.cpp plugin.cpp
...@@ -9,27 +10,24 @@ set(akregatorinterfaces_LIB_SRCS ...@@ -9,27 +10,24 @@ set(akregatorinterfaces_LIB_SRCS
set(akregatorinterfaces_userfeedback_LIB_SRCS) set(akregatorinterfaces_userfeedback_LIB_SRCS)
if (TARGET KUserFeedbackWidgets) if (TARGET KUserFeedbackWidgets)
set(akregatorinterfaces_userfeedback_LIB_SRCS ${akregatorinterfaces_userfeedback_LIB_SRCS} target_sources(akregatorinterfaces PRIVATE
userfeedback/userfeedbackmanager.cpp userfeedback/userfeedbackmanager.cpp
userfeedback/akregatoruserfeedbackprovider.cpp userfeedback/akregatoruserfeedbackprovider.cpp
) )
endif() 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) generate_export_header(akregatorinterfaces BASE_NAME akregatorinterfaces)
set(akregator_userfeedback_LIB)
if (TARGET KUserFeedbackWidgets) if (TARGET KUserFeedbackWidgets)
set(akregator_userfeedback_LIB KUserFeedbackWidgets) target_link_libraries(akregatorinterfaces KUserFeedbackWidgets)
endif() endif()
target_link_libraries(akregatorinterfaces target_link_libraries(akregatorinterfaces
KF5::ConfigGui KF5::ConfigGui
Qt::Widgets Qt::Widgets
${akregator_userfeedback_LIB}
) )
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT) if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(akregatorinterfaces PROPERTIES UNITY_BUILD ON) 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