Sublime Forum

Automatically adding files in Build

#1

Hello forum, how to automate adding files in “build” list?

i mean, if we have a build template, like this:

{ "cmd": "g++", "main.cpp", "Sources/c_OctObject.cpp", "-o", "main"] }
how to automate adding new files in list of files to compile?

Thank you.

0 Likes

#2

Your best bet in to create a Makefile for your project, and then just use the Makefile build system within Sublime Text.

0 Likes