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 setup a QMake project compiling to lib, and a second QMake project that uses that lib as a dependency.
Forum Updated to NodeBB v4.3 + New Features

How to setup a QMake project compiling to lib, and a second QMake project that uses that lib as a dependency.

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.4k 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.
  • P Offline
    P Offline
    pwnstar23
    wrote on last edited by
    #1

    For example in visual studio you can create a solution and have a project inside that solution compile to a lib and other projects in that solution can be set as dependencies and anytime you build one of those projects the ide checks the lib project to compile it first if there are changes. How can I do something similar in QtCreator. I'm using 2.8, linux gcc, these projects don't use the Qt Libraries.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pwnstar23
      wrote on last edited by
      #2

      Just to clarify I already have the two projects, I just need to know how to link them as one depending on the other and getting that auto build for the lib project, if possible.

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qxoz
        wrote on last edited by
        #3

        Hi,
        You need create a subdir project.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          pwnstar23
          wrote on last edited by
          #4

          I did this and it seems like I can't add an already existing QMake project to a subdirs project. Do I have to recreate the projects with making a subdirs project?

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            qxoz
            wrote on last edited by
            #5

            No you can add existing project to a subdir project.
            New subproject - > Other project - > Import existing project
            or edit .pro file manually.

            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