It's in KPimMessageComposer's public link interface, so it should be included in the cmake config file too.