Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. How do you run a specific executable based on the build type?

How do you run a specific executable based on the build type?

Scheduled Pinned Locked Moved Unsolved Qt 6
3 Posts 2 Posters 507 Views
  • 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.
  • J Offline
    J Offline
    johnglen
    wrote on last edited by
    #1

    How do you get a different executable to run based on the build type?

    For example a build release followed by run release should run the build variant executable. Likewise, a build debug followed by run debug should run the debug variant executable.

    I can not find an obvious way in the editor to make this happen without having to manually switch which executable I am running, which is error prone.

    JonBJ 1 Reply Last reply
    0
    • J johnglen

      How do you get a different executable to run based on the build type?

      For example a build release followed by run release should run the build variant executable. Likewise, a build debug followed by run debug should run the debug variant executable.

      I can not find an obvious way in the editor to make this happen without having to manually switch which executable I am running, which is error prone.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @johnglen
      It should already be doing this? If you set your build type to Release it should build and run that, if you set it to Debug is should do both as that.

      J 1 Reply Last reply
      0
      • JonBJ JonB

        @johnglen
        It should already be doing this? If you set your build type to Release it should build and run that, if you set it to Debug is should do both as that.

        J Offline
        J Offline
        johnglen
        wrote on last edited by johnglen
        #3

        @JonB It is a meson project using custom commands, and QT will not let me specify a different executable for release and debug. It will only let me manually switch which executable it will run, so I can have build run the debug build and then run run the release executable which is something I do not want done.

        1 Reply Last reply
        0

        • Login

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