开始计概A下半学期。

This commit is contained in:
rogerwang2008 committed 2026-11-09 21:13:09 +08:00
1 parent 0cfdc8499c
commit 38e97654e1
31 files changed
+2144 -110

No files matched your search

+6
View File
@@ -11,6 +11,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
file(GLOB_RECURSE SOURCES "*.cpp" "*.c")
list(FILTER SOURCES EXCLUDE REGEX ".*/_no_compile/.*")
foreach (source ${SOURCES})
# 获取源文件所在目录(绝对路径)
get_filename_component(dir ${source} DIRECTORY)
@@ -32,4 +34,8 @@ foreach (source ${SOURCES})
set_target_properties(${target_name} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${rel_dir}"
)
target_compile_options(${target_name} PRIVATE
-Wall -Wextra -Wpedantic
)
endforeach ()