From 9b2c3fc19f802281e1b8c084a5b77a78f51f9bc4 Mon Sep 17 00:00:00 2001 From: joker2770 <1214220480@qq.com> Date: Fri, 7 Apr 2023 19:10:53 +0800 Subject: [PATCH] chore: some adjustments for build scripts and dump to v0.4.11. :tada: --- CMakeLists.txt | 2 +- README.md | 10 ++++++++++ src/caro.h | 4 ++-- src/mainwindow.cpp | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d0b2c56..f887beb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.5) -project(qpiskvork VERSION 0.2 LANGUAGES CXX) +project(qpiskvork VERSION 0.4 LANGUAGES CXX) set(CMAKE_INCLUDE_CURRENT_DIR ON) diff --git a/README.md b/README.md index 6f27f74..8b7be93 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,16 @@ cmake .. -DCMAKE_BUILD_TYPE=Release make ``` +- with xmake toolchain + +more easier than cmake. + +```shell +cd qpiskvork +xmake config --mode=release +xmake +``` + ## references 1. [https://sourceforge.net/projects/piskvork/](https://sourceforge.net/projects/piskvork/). diff --git a/src/caro.h b/src/caro.h index 6d8fe84..bb4e4fe 100644 --- a/src/caro.h +++ b/src/caro.h @@ -45,8 +45,8 @@ class Caro final : public rules public: bool checkWin(Board *board) override; - private: - bool findShap(Board *board, const pair& p_drt); +private: + bool findShap(Board *board, const pair &p_drt); }; #endif diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index d295512..98cde1a 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1555,7 +1555,7 @@ void MainWindow::OnActionPlayerSetting() void MainWindow::OnActionVer() { - const QString strVerNum = "Ver Num: 0.4.05\n"; + const QString strVerNum = "Ver Num: 0.4.11\n"; QString strBuildTime = "Build at "; strBuildTime.append(__TIMESTAMP__); strBuildTime.append("\n");