Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Visual Studio Adding Seperate Build Folder
QtWS25 Last Chance

Visual Studio Adding Seperate Build Folder

Scheduled Pinned Locked Moved Qt Creator and other tools
vs addin
3 Posts 2 Posters 1.1k 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.
  • T Offline
    T Offline
    tomkulaga
    wrote on last edited by
    #1

    Is there anyway to specify a separate folder for the build/SLN/and project files using the VS adding? I don't like how it takes over the source folder.

    Thanks

    1 Reply Last reply
    0
    • G Offline
      G Offline
      GrahamL
      wrote on last edited by
      #2

      Hi
      There are 2 places to direct the output.
      The Qt Project settings for a project allows you specify where the output of moc, uic and rcc is written.
      The VS project settings allow you to specify where the object files etc are placed

      Hope this helps

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tomkulaga
        wrote on last edited by
        #3

        Hi,

        Thanks for the reply. I was after something in between. I want to be able to specify the location of the .sln and the .vcxproj files. By default it does them inline with the qt sources, which gets very messy once VS starts building. I like how qt creator separates the source and build all together. [and by build i mean the object files as well as the makefiles/VS slns to build those objects].

        I couldn't find the option in the VS Addin so I got it working with something like this:

        qmake -tp vc -r -o ..\build\SOLUTION.sln qtPROJECT.pro

        It then built, in a folder outside source. I treat the SLN file as a temporary and just re-gen whenever I feel.

        Might help someone if they face the same problem.

        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