refactored cmake gui linking