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 -= core gui
TEMPLATE = lib
LIBS += -lgsl -lgslcblas
DEFINES += TEST_LIBRARY
SOURCES += test.cpp
HEADERS += sharedheader.h
TARGET = test
QT -= core gui
TEMPLATE = lib
LIBS += -lgsl -lgslcblas
DEFINES += TEST_LIBRARY
SOURCES += test.cpp
HEADERS += sharedheader.h
TARGET = test
To copy to clipboard, switch view to plain text mode
Bookmarks