Allow to also pass a target instead of list of sources to KCONFIG_ADD_KCFG_FILES

Authored by davidre on Mon, Jan 13, 2:16 PM.



Brings us one step to closer to not needing to create lists of source files

Diff Detail

R237 KConfig
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
davidre created this revision.Mon, Jan 13, 2:16 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptMon, Jan 13, 2:16 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
davidre requested review of this revision.Mon, Jan 13, 2:16 PM

While touching this file, you might want to fix this file and make it self-contained by also having a include(CMakeParseArguments) at the begin, could be done as direct commit, no review needed IMHO :)

No comment on the actual new method API, I yet have to get used to the idea of direct target handling like target_sources, so lacking sense if the proposal is good.


I propose to rename _sources to _target_or_source_var to make the code less surprising.

davidre removed a subscriber: kossebau.EditedMon, Jan 13, 3:20 PM

For context as I'm not very proficient in CMake this is mostly a copy of D22698

Sorry for removing you, I had accidentally opened the change subscribers lineedit

apol accepted this revision.Mon, Jan 13, 4:18 PM
apol added a subscriber: apol.

Makes sense, thanks David!

Please address kossebau's comments before landing.

This revision is now accepted and ready to land.Mon, Jan 13, 4:18 PM
davidre updated this revision to Diff 73455.Mon, Jan 13, 7:19 PM
davidre marked an inline comment as done.


This revision was automatically updated to reflect the committed changes.