Path variables



  • Hi,
    I have a dll project.
    This dll is used by other projets.
    My other projects include the dll .pro file,
    I would like the compilation of my dll to be done in the outputs of my projects
    (sorry google translate)
    ex:
    for the project "firstProject" the dll must be compiled into <firstProject output>/debug
    for the project "secondProject" the dll must be compiled into <secondProject output>/debug

    so I search a variable like %{CurrentProject:output} to change destdir:
    DEST_DIR = $$PROJECT_OUTPUT

    I hope my question is understandable

    Thanks



  • Simple thing could be

    FirstProject.pro
    TARGET = FirstProject
    MY_DIR = $$TARGET
    include(DLL.pro)

    DLL.pro you define as

    DESTDIR =/Users/Desktop/$$MY_DIR


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.