Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Path variables
Forum Updated to NodeBB v4.3 + New Features

Path variables

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 417 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
      Qt Champions 2022
      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
      http://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 Extensions
      • Unsolved