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. [Solved] DEPENDPATH += . INCLUDEPATH += . Missing in .pro file
Forum Update on Monday, May 27th 2025

[Solved] DEPENDPATH += . INCLUDEPATH += . Missing in .pro file

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.0k 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.
  • H Offline
    H Offline
    Hareen Laks
    wrote on last edited by
    #1

    Hi,

    Currently I'm reading Foundations of Qt Developement by John Thelin.

    That book says "The other two variables, DEPENDPATH and INCLUDEPATH, are set to ., so QMake knows that you keep the files of the project in the current directory. The difference between the two is that DEPENDPATH is used by QMake when mapping the dependencies in the project, whereas INCLUDEPATH is passed on to the compiler to tell it where to look for included files."

    But I cannot find neither DEPENDPATH nor INCLUDEPATH in my project's .pro file.
    @#-------------------------------------------------

    Project created by QtCreator 2014-08-15T09:49:02

    #-------------------------------------------------

    QT += core gui

    TARGET = untitled1
    TEMPLATE = app

    SOURCES += main.cpp
    MainWindow.cpp

    HEADERS += MainWindow.h

    FORMS += MainWindow.ui
    @

    Are they obsoleted?

    Thanks for reading.

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

      These are predefined keywords. They are not required for any simple project like this. Your project works with default settings like current directory etc. e.g if you have kept the header files in different directory, then you can specify
      INCLUDEPATH += "/users/haren/include"

      Then your compiler looks for this directory when you have your own header files.

      Hope this clarifies.

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

      1 Reply Last reply
      1
      • p3c0P Offline
        p3c0P Offline
        p3c0
        Moderators
        wrote on last edited by
        #3

        Hi,

        Follow "this":http://qt-project.org/doc/qt-5/qmake-variable-reference.html link for complete list of qmake variables.

        157

        1 Reply Last reply
        0
        • H Offline
          H Offline
          Hareen Laks
          wrote on last edited by
          #4

          Dheerendra, p3c0,

          Thank you for your help. I understood the reason.

          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