For one file I am able to compile using the simple qmake file below,
but what about compiling all (*.cpp) files in the directory and make an executable (library) for each?
Is there something like a loop in qmake?

Thanks

Qt Code:
  1. QT -= core gui
  2.  
  3. TEMPLATE = lib
  4.  
  5. LIBS += -lgsl -lgslcblas
  6.  
  7. DEFINES += TEST_LIBRARY
  8.  
  9. SOURCES += test.cpp
  10.  
  11. HEADERS += sharedheader.h
  12.  
  13. TARGET = test
To copy to clipboard, switch view to plain text mode