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. How to I add files to the output directory? (qmake)
Forum Updated to NodeBB v4.3 + New Features

How to I add files to the output directory? (qmake)

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 1.7k 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.
  • B Offline
    B Offline
    bobbaluba
    wrote on last edited by
    #1

    Some of my tests requires json files to be present in the working directory.

    When I do out of source builds, the executable get's placed all alone in the source folder, and when I hit ctrl+r in qt creator, the file is not found and the tests fail.

    Is it possible to specify that the file should be copied to the output directory?

    I've already added the json files to the OTHER_FILES variable in my .pro-files.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      Hi,

      you can try defining custom targets "here":http://qt-project.org/doc/qt-5/qmake-advanced-usage.html#adding-custom-targets or installing files "here":http://qt-project.org/doc/qt-5/qmake-advanced-usage.html#installing-files

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      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