News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

New template compile and link files

Started by electrolot, January 11, 2009, 08:40:43 PM

Previous topic - Next topic

electrolot

How can I set in template file which file in project should be compiled and linked for selected build target. For example I create two new build targets and I want set which file belongs for first and second build target.
I know that I can use code:
for (i = 0; i < project.GetFilesCount(); i++)
  {
  project.GetFile(i).compile = true;
  project.GetFile(i).link = true;
  }


but this code select files only for first build target.