Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

Qmake determine the build directory with SUBDIR template



  • I have a project which follow the SUBDIR template, each subdir creating a library. On of them create an executable. I would like to put them in the same directory, for example with DESDIR = bin.
    I tried to create a pri file with :
    @
    isEmpty ( MY_DIR){
    MY_DIR = $${OUT_PWD}
    }
    @

    but $$MY_DIR doesn't have the same value.
    How can I do that the ?

    ps: The build directory is random


Log in to reply