I have a project that I am not in control of the file structure. The file structure contains project files for different operating systems, and I am expect to make it work with linux (the code is portable).
The project’s structure is like this:
/Project
/Windows (Visual Studio project files)
/OSX (XCode project files)
/iPhone (XCode project files)
/Android (Android studio project files)
/Resources (app's resources)
/Source (All the cpp source code)
…I am wanting to add
/Project
/Linux
/.vscode
cmakelists.txt
into the project structure. Using VSCode, if I have cmakelists.txt open and hit ctrl-F5 to compile/debug, it works. But if I have a cpp or other file open and hit ctrl-F5, it tries to compile ONLY the file I have open and errors out.
Is there some way to say “ctrl-F5 ALWAYS goes to the cmake file”? I have tried to tweak settings.json without luck, but I’m VERY new to VSCode and I need help making the paradigm shift.