I have a c++ project that needs to make use of an objective-C SDK. My idea is to create a c++ class in a .mm file which contains calls to the SDK in objective-C syntax. Then I would declare an instance of that class in my existing c++ project (which has .cpp files).
Will that work? From what I gather, a ".mm" file is an Objective-C++ file, which can make calls to Objective-C functions? But can a cpp file instanciate a class defined in a .mm file?