Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: ratman on May 26, 2007, 07:40:48 pm
-
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
-
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
-
Did you change the build target under Build->Select Target.
I have changed the 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.
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:
-
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