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. QtCreator .Pro file's INCLUDEPATH vs HEADERS relative paths?

QtCreator .Pro file's INCLUDEPATH vs HEADERS relative paths?

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

    Hi,

    Just a quick question. Is it necessary to specify the relative path in the HEADERS (and SOURCES for that matter) when the path is already specified in the INCLUDEPATH.
    Could I do without specifying the relative paths in HEADERS and SOURCES but add VPATH with all the paths instead?

    What's the correct way? What is the actual difference?

    Thanks

    Christian EhrlicherC 1 Reply Last reply
    0
    • LoquatL Loquat

      Hi,

      Just a quick question. Is it necessary to specify the relative path in the HEADERS (and SOURCES for that matter) when the path is already specified in the INCLUDEPATH.
      Could I do without specifying the relative paths in HEADERS and SOURCES but add VPATH with all the paths instead?

      What's the correct way? What is the actual difference?

      Thanks

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      HEADERS and SOURCES has not much to do with the INCLUDEPATH
      With HEADERS and SOURCES you define which headers and sources belong to your project. With INCLUDEPATH you define which (additional) include paths should be passed to the compiler.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved