(gui) Fixed a bug with selection groups
(cmake) Resolve a minor build dependency problem