Search code examples
qtbuildbuild-processqmake

How to set build order in Qt subdir project


I have a project with 5-6 libraries and one executable. The executable depends on the libraries, and some libraries depend on other libraries. How can I specify a build order so the dependencies are built before they are needed?


Solution

  • Ok. I found the solution.Just add ordered to CONFIG and recite subdirs in correct order

    CONFIG += ordered
    
    SUBDIRS += Utility GraphicModule PackingLib Core GameProto
    

    For me this work fine