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] how to code a .pro file to compile 2 applications with 2 different target folders
Forum Updated to NodeBB v4.3 + New Features

[Solved] how to code a .pro file to compile 2 applications with 2 different target folders

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

    My project workspace is set up like the following:
    @
    mainfolder
    main.cpp
    app1.cpp
    app1.h
    app1.pro
    app2folder
    main.cpp
    app2.cpp
    app2.h
    app2.pro
    @
    How can I code the app1.pro file so that when you run "make release" it automatically compiles app1 in the mainfolder and then compiles app2 in the app2folder?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      You could use the "subdirs template of qmake":http://doc.qt.nokia.com/4.7/qmake-variable-reference.html#subdirs

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • T Offline
        T Offline
        task_struct
        wrote on last edited by
        #3

        Take a look at "that tutorial":http://developer.qt.nokia.com/wiki/IncludingProFiles

        "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program."

        • Linu...
        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          qttrekker
          wrote on last edited by
          #4

          Exactly what I was looking for! Many thanks for the 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