Seregon/sJson

sJson (also known as Secure JSON) is a thread-safe, dynamic-allocation-free, cross-compilable JSON parser based on a PAL (Platform Abstraction Layer) architecture writed in c99

C/251 B/No license
CMakeLists.txt
sJson / CMakeLists.txt
1cmake_minimum_required(VERSION 3.10)
2project(json_pal C)
3 
4set(CMAKE_C_STANDARD 99)
5set(CMAKE_C_EXTENSIONS OFF)
6 
7if(MSVC)
8 add_compile_options(/W4 /WX)
9else()
10 add_compile_options(-Wall -Wextra -Wpedantic -Wshadow)
11endif()
12 
13# Header-only — test executable is the only build artifact
14add_executable(test_json src/test_json.c)
15target_link_libraries(test_json m)
16 
17enable_testing()
18add_test(NAME json_pal_suite COMMAND test_json)
19