For the moment I found a possible solution: I created a new directory which will contain my test tool. I created the classes I need inside there and I included the files in a .pri file. Then, in the main .pro file, I used a new config value to switch between the library and the test application. This way it should be simple to switch between the deploy of the lib and running the test tool. Something like this:
CONFIG += MAKE_LIBRARY
!MAKE_LIBRARY {
include(myTestTool/myTestTool.pri)
TEMPLATE = app
}
else {
TEMPLATE = lib
QT -= gui
}
CONFIG += MAKE_LIBRARY
!MAKE_LIBRARY {
include(myTestTool/myTestTool.pri)
TEMPLATE = app
}
else {
TEMPLATE = lib
QT -= gui
}
To copy to clipboard, switch view to plain text mode
But I suppose this is not the best possible idea. There should be something better. If anyone knows please share!
Bookmarks