I was not able to progress much today. I kept working on the macOS Objective-C++ guide to find the assets in the .app file but had trouble getting the functions from the wrapper file.
I tried to fix it but I was unable to do so. I decided to remove the Objective-C++ file, the code from the C++ source files and the Mac build library creation logic from CMakeLists.txt
I found a library that might fix the problem The library is cpplocate. I have to learn more about the library before experimenting with it.