Author Topic: HOWTO: Create more file .exe with different name from my project  (Read 3871 times)

ratman

  • Guest
Hi,
I have a project with various "build target":
Debug
Realese
targ1
targ2
targ3
   
for every "build target" I want to create a exe with the name of the "build target": :shock:
Debug----->myProgName.exe
Release----->myProgName.exe
targ1----->targ1.exe
targ2----->targ2.exe
targ3----->targ3.exe
   
I have put the name of the myTargName in the Project->Properties->Build Targets->output filename,
but I have always single myProgName.exe.
how I can make?
HELP ME!!!!!!!
Thanks

Offline rnodal

  • Single posting newcomer
  • *
  • Posts: 9
Re: HOWTO: Create more file .exe with different name from my project
« Reply #1 on: May 26, 2007, 08:04:14 pm »
Did you change the build target under Build->Select Target. Also if you want to do it all at once just create a virtual target. Also for Debug and Release they have the same output name so if you build them to the same folder which ever you build last will be the one you will see.

-r
« Last Edit: May 26, 2007, 08:05:59 pm by rnodal »

ratman

  • Guest
Re: HOWTO: Create more file .exe with different name from my project
« Reply #2 on: May 27, 2007, 06:37:26 pm »
Did you change the build target under Build->Select Target.
I have changed the the build target under Build->Select Target....
Quote
Also if you want to do it all at once just create a virtual target. Also for Debug and Release they have the same output name so if you build them to the same folder which ever you build last will be the one you will see.
for every Target, the folder are one:
the path in output filename are different and the  objects output dir,
but i have ONLY .exe with the name original :cry:

mariocup

  • Guest
Re: HOWTO: Create more file .exe with different name from my project
« Reply #3 on: May 27, 2007, 11:54:04 pm »
Hi,

I do not know exactly if I understand your problem, perhaps this hint can help you.

You can use builtin variables
see http://wiki.codeblocks.org/index.php?title=Variable_expansion for details
So if you use the entry
$(TARGET_NAME)/$(TARGET_NAME).exe
for Project->Properties->Build Targets->output filename you do not have to worry about that described problem.

The resulting output filename can be access with $(TARGET_OUTPUT_FILE) within codeblocks.

Bye,

Mario