feat(cmake): 增加一些常用工具
All checks were successful
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m11s
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Successful in 1m25s
sm-rpc / build (Debug, host.gcc) (push) Successful in 1m2s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Successful in 1m25s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Successful in 1m32s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Successful in 1m39s
sm-rpc / build (Release, host.gcc) (push) Successful in 1m22s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Successful in 1m32s

This commit is contained in:
tqcq
2025-08-19 18:59:22 +08:00
parent ea9d7b5f8c
commit 3d395b45f0
5 changed files with 116 additions and 10 deletions

View File

@@ -1,12 +1,10 @@
#include "add.h"
#include "calc.h"
#include <benchmark/benchmark.h>
static void
BM_Add(benchmark::State &state)
{
Add(1, 2);
while (state.KeepRunning()) { Add(1, 2); }
}
BENCHMARK(BM_Add);
BENCHMARK_MAIN();

View File

@@ -1,4 +1,4 @@
#include "add.h"
#include "calc.h"
#include <gtest/gtest.h>
TEST(Add, Base)