Making the VSProject and Binary executable named differently
-
wrote on 15 Apr 2025, 03:22 last edited by
Hi,
Noob in qmake here.
I have an old project that I need to build.
It creates a visual studio solution with bunch of visual studio project.
However,in solution file, I can see two (one is dll and other is exe from same source code) project has same name.
Issue is Visual studio complain and doesn't load the 2nd project, resulting not building the exe.I looked into the pro file, and tried to change the TARGET name to change the exe project name.
It worked, but issue is, it also change the name of the binary output.How can I make sure the created project file is different than the exe file?
-
Hi,
Noob in qmake here.
I have an old project that I need to build.
It creates a visual studio solution with bunch of visual studio project.
However,in solution file, I can see two (one is dll and other is exe from same source code) project has same name.
Issue is Visual studio complain and doesn't load the 2nd project, resulting not building the exe.I looked into the pro file, and tried to change the TARGET name to change the exe project name.
It worked, but issue is, it also change the name of the binary output.How can I make sure the created project file is different than the exe file?
wrote on 15 Apr 2025, 11:42 last edited by Pl45m4@Pixelord said in Making the VSProject and Binary executable named differently:
I looked into the pro file, and tried to change the TARGET name to change the exe project name.
It worked, but issue is, it also change the name of the binary output.The project name in QMake is set by the name of the
*.pro
file.
Unlike CMake where everything is namedCMakeLists.txt
and within that file there is the option for aproject(....)
command.And as you've already said, the
TARGET
is for your platform-independent binary output.e.g.
foo.pro
by default results in afoo
project with afoo.exe
/foo.dll
/foo.so
etc. binary.
If you want to rename the project you are working on, rename
foo.pro
to likehelloworld.pro
and then set separate name(s) for your target(s).
2/2