cmake: add options for building gui

Let's do `with-qt` and use `:optional` below.