User forums > Using Code::Blocks
HOWTO: Create more file .exe with different name from my project
(1/1)
ratman:
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
rnodal:
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
ratman:
--- Quote from: rnodal on May 26, 2007, 08:04:14 pm ---Did you change the build target under Build->Select Target.
--- End quote ---
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.
--- End quote ---
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:
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
Navigation
[0] Message Index
Go to full version