From bda97cfad19cc58d9bc4d9967750fe35311260e1a8d3e405c998b1548d48310f Mon Sep 17 00:00:00 2001 From: ArchZer0 Date: Sun, 16 Aug 2026 14:23:42 +0800 Subject: [PATCH] FistCommit --- CMakeLists.txt | 6 ++++++ CMakePresets.json | 17 +++++++++++++++++ src/BigDecimal.cpp | 0 src/BigInteger.cpp | 0 4 files changed, 23 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 CMakePresets.json create mode 100644 src/BigDecimal.cpp create mode 100644 src/BigInteger.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..18b0590 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,6 @@ +cmake_minimum_required(VERSION 3.10.0) +project(BetterSTL VERSION 0.1.0 LANGUAGES C CXX) + +add_library(BetterSTL src/BigInteger.cpp + src/BigDecimal.cpp) + diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 0000000..8e31bb1 --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,17 @@ +{ + "version": 8, + "configurePresets": [ + { + "name": "Clang", + "displayName": "使用工具链文件配置预设", + "description": "设置 Ninja 生成器、版本和安装目录", + "generator": "Ninja", + "binaryDir": "${sourceDir}/out/build/${presetName}", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug", + "CMAKE_TOOLCHAIN_FILE": "", + "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}" + } + } + ] +} \ No newline at end of file diff --git a/src/BigDecimal.cpp b/src/BigDecimal.cpp new file mode 100644 index 0000000..473a0f4 diff --git a/src/BigInteger.cpp b/src/BigInteger.cpp new file mode 100644 index 0000000..473a0f4