Flesh out the repository with example and tests

This commit is contained in:
ktkk 2025-10-09 15:07:32 +00:00
parent 546eaa5d4d
commit 05c45bbc81
8 changed files with 165 additions and 57 deletions

22
example/CMakeLists.txt Normal file
View file

@ -0,0 +1,22 @@
add_executable(
example
main.c
)
set_target_properties(
example
PROPERTIES
C_STANDARD 23
C_STANDARD_REQUIRED ON
C_EXTENSIONS OFF
)
target_link_libraries(
example
PRIVATE
json
)
target_include_directories(
example
PRIVATE
${CMAKE_SOURCE_DIR}
)