File tree Expand file tree Collapse file tree 4 files changed +776
-20
lines changed
Expand file tree Collapse file tree 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)
55project (main)
66
77if (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 )
99else ()
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 )
1114endif ()
1215
16+
1317find_package (fmt REQUIRED)
1418find_package (Boost REQUIRED COMPONENTS locale)
1519
1620file (GLOB sources CONFIGURE_DEPENDS "examples/*.cpp" )
1721foreach (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 )
2226endforeach ()
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