Sublime Forum

Projects and multiple targets

#1

Hi. Is it possible to craft a project file to manage multiple build targets? I have a repository with multiple binaries to be produced. At the moment, I have one project per binary, but this is cumbersome to switch to another project each time I need to build another binary (these targets have shared code). Yes, I can create a Makefile, but even then I don’t see how the project can provide the ability to select which target you wish to build (make all, can take time)

Would be nice for the project to specify which binary you wish to build (or all of them)

(I’m used to Xcode which you can specify multiple build targets in the same project)

Thanks for any advice.

0 Likes

#2

You can define multiple build systems in the project and switch between them using Tools > Build With…

0 Likes

#3

AFAICT builds systems are a global setting, not a project setting, right? Unless it’s a project setting, I prefer not to litter my global space with various project specific build systems. Thanks

0 Likes

#4

Projects can have build systems. See https://www.sublimetext.com/docs/projects.html#build-systems-key

0 Likes

#5

Thanks. I’ll look into it

0 Likes