moved GUI bit at the right place in cmakelist