I have a folder structure as shown below. When I refer to project I mean in the CMAKE sense.
Root folder:
--Project A Root:
----CMakelists.txt
----CMakeSettings.json
----Target (executable) Root:
------src
--Project B Root:
----CMakelists.txt
----CMakeSettings.json
----Target (Executable) Root:
------src
--Common Libraries:
----Target C (shared Library) Root:
------CMakelists.txt
------src
----Target D (static Library) Root:
------CMakelists.txt
------src
Project A needs both Target C and Target D to build and run. Project B is the same with the executable being different.
If I open Project A’s root using open folder of Visual Studio and connect to a remote Linux machine, RSYNC syncs up the Project A’s root which includes the source. It does not sync up target C and D. So when I go to generate for Project A, CMAKE complains that it cannot find target C and D’s folders.
Question: Is there a way to add Target C and D’s folders to the RSYNC setup in the CMakeSettings.json of Project A? I want RSYNC/Visual studio to keep the necessary source for a project synced (regardless of its location) with its Linux version from Windows.
The folder structure cannot change. I cannot create a root folder that encompasses both Project A and the Common Projects library and open that because I want Project A and B to be separate.
I also have tried adding to the RSYNC command arguments in CMakeSettings.json and that did not work.
Thanks!