Refactor CMake stuff related to DolphinQt.