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. Need help on adding 3rd party library to my project file
Qt 6.11 is out! See what's new in the release blog

Need help on adding 3rd party library to my project file

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

    My project was structured with all the *.pro and *.pri files in one pro folder, separated from the source .h and .cpp files.

    build       | 
    pro         | subproject1 | subproject1.pro
                | subproject2 | subproject2.pro
                | subproject3 | subproject3.pro
    subproject1 | xyz.h + xyz.cpp
    subproject2 | abc.h + abc.cpp
    subproject3 | efg.h + efg.cpp
    
    

    I want to add this KDSingleApplication library to subproject1 so I can use it.

    I figured that I should include the KDSingleApplication.pri in my subproject1.pro, but then where do I put the library's source folder? And the source folder also has a src.pro, do I break apart the pri and pro from the library folder and put them into my pro folder like this?

    pro         | subproject1 | kdsingleapplication | KDSingleApplication.pri
    pro         | subproject1 | kdsingleapplication | src.pro
    

    And also where should I output the build debug/release dll? I'm confused.

    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