Skip to content

Commit

Permalink
docs: 重构文档及sample
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Jan 25, 2024
1 parent 6b8daf3 commit 6ef3817
Show file tree
Hide file tree
Showing 7 changed files with 777 additions and 760 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ option(BUILD_TESTING "Build testing" ON)
set(CMAKE_CXX_STANDARD 17)

if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC")
add_compile_options("/utf-8" "/W4" "/WX" "/Zc:preprocessor")
add_compile_options("/utf-8" "/W4" "/Zc:preprocessor")
else()
add_compile_options("-Wall;-Wextra;-Wpedantic;-Werror;-mtune=native")
add_compile_options("-Wall;-Wextra;-Wpedantic;-mtune=native")
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options("-Wno-gnu-zero-variadic-macro-arguments")
endif()
Expand All @@ -28,7 +28,6 @@ endif()

if (BUILD_SAMPLE)
add_executable(sample sample/sample.cpp include/json.hpp)
add_executable(json5_parse_sample sample/json5_parse.cpp include/json.hpp include/json5.hpp)
endif()

if (BUILD_TESTING)
Expand Down
Loading

0 comments on commit 6ef3817

Please sign in to comment.