Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Path variables
Qt 6.12 LTS is out! See what's new in the release blog

Path variables

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 555 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.
  • Roy44R Offline
    Roy44R Offline
    Roy44
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
      wrote on last edited by
      #2

      Simple thing could be

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

      DLL.pro you define as

      DESTDIR =/Users/Desktop/$$MY_DIR

      Dheerendra
      @Community Service
      Certified Qt Specialist
      https://www.pthinks.com

      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
      • Unsolved