Add All Top-Level Targets to the Menu
The previous code did not handle folders with
multiple actions but no parent.
Create a project with two toplevel targets (e.g.
a CMakeLists.txt with two add_executable calls), add the
project to a KDevelo session, go to Configure Launches and
try adding a compiled binary by clicking on the Add button
at the top-left corner. Before this patch, only one of the
two toplevel targets would show in the menu.
Reviewers: KDevelop, apol
Reviewed By: KDevelop, apol
Subscribers: kfunk, apol, arrowd, kdevelop-devel
Differential Revision: https://phabricator.kde.org/D18021