build: back to cmake.

This commit is contained in:
2025-07-06 23:51:45 +08:00
parent 13be630726
commit a04202c00e
33 changed files with 436 additions and 5247 deletions

View File

@@ -5,24 +5,9 @@
#include "frelayGUI.h"
#ifndef NO_CRASHELPER
#include <crashelper.h>
#endif
int main(int argc, char* argv[])
{
#ifndef NO_CRASHELPER
auto configDir = Util::GetCurConfigPath("frelay");
#ifdef _WIN32
backward::SetDumpFileSavePath(configDir + "/dumpfile");
backward::SetDumpLogSavePath(configDir + "/dumplog");
#else
backward::SetDumpLogSavePath(configDir + QDir::separator() + "dumplog");
#endif
CRASHELPER_MARK_ENTRY();
#endif
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
@@ -32,7 +17,7 @@ int main(int argc, char* argv[])
#ifdef _WIN32
QFont font("Microsoft YaHei", 9);
a.setFont(font);
//a.setStyle("fusion");
// a.setStyle("fusion");
a.setStyle("windows");
#endif