Skip to content

Commit 4076596

Browse files
committed
pythonucs4
1 parent fd44028 commit 4076596

File tree

4 files changed

+776
-20
lines changed

4 files changed

+776
-20
lines changed

CMakeLists.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,22 @@ set(CMAKE_CXX_STANDARD 20)
55
project(main)
66

77
if (MSVC)
8-
add_compile_options(/Zc:preprocessor /utf-8 /DNOMINMAX)
8+
add_compile_options(/Zc:preprocessor /utf-8 /DNOMINMAX /D_USE_MATH_DEFINES /EHsc /bigobj)
99
else()
10+
if (WIN32)
11+
add_compile_options(-finput-charset=utf-8 -fexec-charset=utf-8)
12+
endif()
1013
add_compile_options(-Wall -Wextra -Werror=return-type)
1114
endif()
1215

16+
1317
find_package(fmt REQUIRED)
1418
find_package(Boost REQUIRED COMPONENTS locale)
1519

1620
file(GLOB sources CONFIGURE_DEPENDS "examples/*.cpp")
1721
foreach(source IN LISTS sources)
1822
get_filename_component(name ${source} NAME_WE)
1923
add_executable(${name} ${source})
20-
target_link_libraries(${name} PRIVATE fmt boost_locale)
24+
target_link_libraries(${name} PRIVATE fmt::fmt Boost::locale)
2125
target_include_directories(${name} PRIVATE include)
2226
endforeach()

docs/design.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 设计模式
2+
3+
不要去指挥下面怎么做!

0 commit comments

Comments
 (0)