Use cmake export functionality.