Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt creator: loading up a project file located in subdirectory

Qt creator: loading up a project file located in subdirectory

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 158 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.
  • G Offline
    G Offline
    gserm
    wrote on last edited by gserm
    #1

    Hi, a legacy project I am working on has the following folder hierarchy:

    src
    |--- folder1
    |--- folder2
    |--- Buildfiles
            |--- my_app.pro
            |--- components
                    |--- comp1.pro
                    |--- comp2.pro     
    

    The pro file that builds the project is my_app.pro, which has (among other things) these lines:

    INCLUDEPATH = folder1 folder2
    include(components/comp1.pro)
    include(components/comp2.pro)

    If I run qmake from the src directory: qmake Buildfiles/my_app.pro the project builds cleanly. If I now try to use Qt Creator to open the my_app.pro file, it's not loading any headers or sources (in folder1 and folder2) since (I assume) Qt Creator will look in the current directory for folder1 and folder2 and it cannot find them. It does load the components/compX.pro though.

    Is there a way to make Qt Creator load up the pro file correctly without changing the pro file itself (as there is client code building it from the src directory)? By perhaps writing a new short pro file which will load the my_app.pro file?
    Thank you for your suggestions!

    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