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