News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Multi exe file project

Started by simonl, November 29, 2008, 07:16:23 PM

Previous topic - Next topic

simonl

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

Seronis

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.

MortenMacFly

Quote from: simonl on November 29, 2008, 07:16:23 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]