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. How to make a relative path for header files
Forum Updated to NodeBB v4.3 + New Features

How to make a relative path for header files

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

    I am able to use the "QMAKE_POST_LINK = copy address\goes\here.h and\pastes\here.h" but want to take the original address as a relative path. I tired something like this...

    HEADERS += -L"$$PWD/header.h" -header.h

    QMAKE_POST_LINK = copy -H"$$PWD\header.h" -header.h C:\really\long\address\goes\here\header.h;

    this didn't work, so I tried something like this from a library relative path example I found earlier like so...

    QMAKE_POST_LINK = copy -L"..\header.h" -header.h C:\really\long\address\goes\here\header.h;

    Does anyone know how to copy a header file using a relative path approach? Or is it simply impossible?

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

      welcome to the forum.
      Can you try checking on INCLUDEPATH directive ?

      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