Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Making the VSProject and Binary executable named differently
Forum Update on Tuesday, May 27th 2025

Making the VSProject and Binary executable named differently

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 62 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pixelord
    wrote on 15 Apr 2025, 03:22 last edited by
    #1

    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?

    P 1 Reply Last reply 15 Apr 2025, 11:42
    0
    • P Pixelord
      15 Apr 2025, 03:22

      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?

      P Offline
      P Offline
      Pl45m4
      wrote on 15 Apr 2025, 11:42 last edited by Pl45m4
      #2

      @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 named CMakeLists.txt and within that file there is the option for a project(....) command.

      And as you've already said, the TARGET is for your platform-independent binary output.

      e.g.

      • foo.pro by default results in a foo project with a foo.exe/foo.dll/foo.so etc. binary.

      If you want to rename the project you are working on, rename foo.pro to like helloworld.pro and then set separate name(s) for your target(s).


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0

      2/2

      15 Apr 2025, 11:42

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved