This commit is contained in:
CupWater
2026-08-16 15:20:11 +08:00
parent 83a75d4e76
commit feac230fef
12 changed files with 30 additions and 34 deletions
+5 -5
View File
@@ -3,9 +3,9 @@ project(BetterSTL VERSION 0.1.0 LANGUAGES C CXX)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# 定义源文件
set(BETTERSTL_SOURCES
src/BigInteger.cpp
src/BigDecimal.cpp)
set(BETTERSTL_SOURCES
src/big_integer.cpp
src/big_decimal.cpp)
# 生成静态库 (.a 文件)
add_library(BetterSTL_static STATIC ${BETTERSTL_SOURCES})
@@ -26,12 +26,12 @@ add_library(BetterSTL ALIAS BetterSTL_static)
enable_testing()
add_executable(BigIntegerTests tests/BigIntegerTest.cpp)
add_executable(BigIntegerTests tests/big_integer_test.cpp)
target_include_directories(BigIntegerTests PRIVATE include)
target_link_libraries(BigIntegerTests PRIVATE BetterSTL_static)
add_test(NAME BigIntegerTests COMMAND BigIntegerTests)
add_executable(BigDecimalTests tests/BigDecimalTest.cpp)
add_executable(BigDecimalTests tests/big_decimal_test.cpp)
target_include_directories(BigDecimalTests PRIVATE include)
target_link_libraries(BigDecimalTests PRIVATE BetterSTL_static)
add_test(NAME BigDecimalTests COMMAND BigDecimalTests)