Author Topic: Multi exe file project  (Read 3541 times)

Offline simonl

  • Single posting newcomer
  • *
  • Posts: 7
Multi exe file project
« on: November 29, 2008, 07:16:23 pm »
Hi,

Is there a way to set up a project containing a number of C++ files each of which is built to an .exe file?  If I specify a console project it is assumed they are all to be linked together into one exe.  I could have a project for each file of course but these are test programs - I anticipate having dozens at least by the time the project is complete.

Thanks in advance

Simon

Offline Seronis

  • Almost regular
  • **
  • Posts: 197
Re: Multi exe file project
« Reply #1 on: November 29, 2008, 07:40:03 pm »
custom makefile or having as many build targets in your project as you need or just have as many projects in a workspace as you need.  take your pick.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
Re: Multi exe file project
« Reply #2 on: November 29, 2008, 10:07:21 pm »
Is there a way to set up a project containing a number of C++ files each of which is built to an .exe file?
Of course. Just create 1..n targets within you project and select the files you want to compile for each target. That's it.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ