We've to use a small lib in our GUI written in C. I've integrated the lib with the following pro

Qt Code:
  1. DEPENDPATH += .
  2. INCLUDEPATH += .
  3.  
  4. DEFINES += __i386__
  5. unix:DEFINES += _LINUX
  6. window:DEFINES += _WIN32
  7.  
  8. HEADERS += rttTmsCommLib.h
  9. SOURCES += rttTmsCommLib.c
  10.  
  11. TARGET = rttTmsComm
  12. unix:TEMPLATE = lib
  13. windows:TEMPLATE =vclib
  14. CONFIG += staticlib
  15.  
  16.  
  17. asts-tms-tp-monitor {
  18. TARGET = asts-tms-tp-monitor
  19. unix:TEMPLATE = app
  20. win32:TEMPLATE = vcapp
  21. CONFIG -= staticlib
  22. CONFIG += static
  23. HEADERS += asts-tms-tp-monitor.h
  24. SOURCES += asts-tms-tp-monitor.c
  25. }
  26.  
  27. tmsdemoclient {
  28. TARGET = tmsdemoclient
  29. unix:TEMPLATE = app
  30. win32:TEMPLATE = vcapp
  31. CONFIG -= staticlib
  32. CONFIG += static
  33. SOURCES += tmsdemoclient.c
  34. }
To copy to clipboard, switch view to plain text mode 

the file is invoced with SUBDIRS and works really nice under Windows and Linux. I can also use

Qt Code:
  1. qmake -config asts-tms-tp-monitor
  2. qmake -config tmsdemoclient
To copy to clipboard, switch view to plain text mode 

to build the democlient and the monitor. But now I want that the 2 additional targets are also build when the lib is build (like make all -> rttTmsCommLib asts-tms-tp-monitor tmsdemoclient) and I don't know how to archieve this