add platform check
This commit is contained in:
parent
27377f2f1e
commit
127653da00
18
main.cpp
18
main.cpp
|
@ -1,14 +1,26 @@
|
||||||
#include "src/mainwindow.h"
|
|
||||||
|
#ifndef _WIN32
|
||||||
|
#ifndef linux
|
||||||
|
|
||||||
|
#error "Can't recognize your platform. Please either set _WIN32 or 'linux' macro according to your system."
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
#include "yaml-cpp/yaml.h"
|
#include "./src/config/config.h"
|
||||||
|
#include "src/mainwindow.h"
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
Config config;
|
||||||
|
|
||||||
|
|
||||||
QApplication a(argc, argv);
|
QApplication a(argc, argv);
|
||||||
MainWindow w;
|
MainWindow w;
|
||||||
w.show();
|
w.show();
|
||||||
|
|
||||||
|
|
||||||
return a.exec();
|
return a.exec();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue