Made main cmake file qt friendly.