Thank you, Coises, the following code now works to set the dependencies correctly (I can change a code file in the library, hit F5 and the app builds and links correctly).

Another question: How does this effect the notion of "scopes" in general? Is it still valid to use the "win32" scope, or is there a different Conditional, such as CONFIG, that I should be using?

Qt Code:
  1. TARGET = trialApp
  2. TEMPLATE = app
  3.  
  4. win32 {
  5. CONFIG(debug, debug|release) {
  6. LIBS += -L../trialLibA/debug
  7. PRE_TARGETDEPS += ../trialLibA/debug/libtrialLibA.a
  8. } else {
  9. LIBS += -L../trialLibA/release
  10. PRE_TARGETDEPS += ../trialLibA/release/libtrialLibA.a
  11. }
  12. }
  13.  
  14. INCLUDEPATH += ../trialLibA
  15. LIBS += -ltrialLibA
  16.  
  17. SOURCES += main.cpp\
  18. MainWindow.cpp
  19. HEADERS += MainWindow.h
  20. FORMS += MainWindow.ui
To copy to clipboard, switch view to plain text mode