Results 1 to 2 of 2

Thread: Build two programs in one project in creator

  1. #1
    Join Date
    Sep 2010
    Posts
    10
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11
    Wiki edits
    1

    Default Build two programs in one project in creator

    Hello.
    Is it possible to create a project in Qt-creator that will build two executable files?
    I'm working on a project that will have both a client and a server. They will share some code so it would be nice if I could build both the server and the client in the same project.

    Is this possible?

  2. #2
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Build two programs in one project in creator

    AFAIK use .pro files to do that.
    Example: create a myServClientBuild.pro somewhere (best in parent directory of serv/client folders), then place in it:
    Qt Code:
    1. TEMPLATE = \
    2. subdirs
    3. SUBDIRS = \
    4. path-to-Server \
    5. path-to-Client
    To copy to clipboard, switch view to plain text mode 
    Open this pro in QtCreator and work with n projects, although it sometimes gets messed up, i.e. when You want to add to the second project on the list one file it add it to the first project on the list. Same goes for UI. (But maybe it's fixed on 2.x, I use 1.3.x).
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

Similar Threads

  1. Cant build Qt project
    By ChrisBuchholz in forum Installation and Deployment
    Replies: 7
    Last Post: 21st July 2010, 00:05
  2. i want build My project use VLC library on QT
    By nhs_0702 in forum Qt Programming
    Replies: 1
    Last Post: 13th March 2010, 07:41
  3. Replies: 1
    Last Post: 14th January 2010, 00:35
  4. Duplicate a Qt Creator project
    By Coises in forum Newbie
    Replies: 5
    Last Post: 20th December 2009, 20:38
  5. Qt Creator project view
    By JohnToddSr in forum Qt Tools
    Replies: 3
    Last Post: 4th May 2009, 08:48

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.