File tree 4 files changed +776
-20
lines changed
4 files changed +776
-20
lines changed Original file line number Diff line number Diff line change @@ -5,18 +5,22 @@ set(CMAKE_CXX_STANDARD 20)
5
5
project (main)
6
6
7
7
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 )
9
9
else ()
10
+ if (WIN32 )
11
+ add_compile_options (-finput-charset=utf-8 -fexec-charset=utf-8)
12
+ endif ()
10
13
add_compile_options (-Wall -Wextra -Werror=return-type )
11
14
endif ()
12
15
16
+
13
17
find_package (fmt REQUIRED)
14
18
find_package (Boost REQUIRED COMPONENTS locale)
15
19
16
20
file (GLOB sources CONFIGURE_DEPENDS "examples/*.cpp" )
17
21
foreach (source IN LISTS sources )
18
22
get_filename_component (name ${source} NAME_WE )
19
23
add_executable (${name} ${source} )
20
- target_link_libraries (${name} PRIVATE fmt boost_locale )
24
+ target_link_libraries (${name} PRIVATE fmt::fmt Boost::locale )
21
25
target_include_directories (${name} PRIVATE include )
22
26
endforeach ()
Original file line number Diff line number Diff line change
1
+ # 设计模式
2
+
3
+ 不要去指挥下面怎么做!
You can’t perform that action at this time.
0 commit comments