forked from qt-creator/qt-creator
Initial commit
This commit is contained in:
18
shared/autotest/main.cpp
Normal file
18
shared/autotest/main.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
@if "%RequireGUI%" == "true"
|
||||
#include <QApplication>
|
||||
@else
|
||||
#include <QCoreApplication>
|
||||
@endif
|
||||
|
||||
// add necessary includes here
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
@if "%RequireGUI%" == "true"
|
||||
QApplication a(argc, argv);
|
||||
@else
|
||||
QCoreApplication a(argc, argv);
|
||||
@endif
|
||||
|
||||
return a.exec();
|
||||
}
|
||||
Reference in New Issue
Block a user