I am starting out in C++ development (coming from a PHP/Javascript background), with an aim of creating a small game for iOS/Android using SDL2. As far as C++ and SDL2 I feel I'm understanding everything well so far, but I am struggling with how to structure and setup a project for multiple platforms. I've been searching for a solution all morning, but I'm perhaps just not using the right terms to find the answer I seek.
Is there a way to setup an SDL project for Xcode and Eclipse so they can both share common code and assets? Or is it best to just treat them as separate projects and copy/paste common code and assets (this feels wrong though)? Thanks