Skip to content

Commit

Permalink
add CBOR example
Browse files Browse the repository at this point in the history
  • Loading branch information
grisumbras committed Jan 13, 2025
1 parent 57d42f0 commit 159a8f3
Show file tree
Hide file tree
Showing 5 changed files with 488 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/qbk/examples.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,9 @@
[example_use_allocator]
[endsect]

[section CBOR]
[example_cbor]
[endsect]

[endsect]

1 change: 1 addition & 0 deletions doc/qbk/main.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
[import ../../example/pretty.cpp]
[import ../../example/validate.cpp]
[import ../../example/use_allocator.cpp]
[import ../../example/cbor.cpp]
[import ../../include/boost/json/impl/serialize.ipp]
[import ../../test/doc_background.cpp]
[import ../../test/doc_parsing.cpp]
Expand Down
8 changes: 8 additions & 0 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,11 @@ add_executable(use_allocator
)
set_property(TARGET use_allocator PROPERTY FOLDER "example")
target_link_libraries(use_allocator PRIVATE Boost::json)

#

add_executable(cbor
cbor.cpp
)
set_property(TARGET cbor PROPERTY FOLDER "example")
target_link_libraries(cbor PRIVATE Boost::json)
2 changes: 2 additions & 0 deletions example/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ exe proxy : proxy.cpp ;
exe validate : validate.cpp ;

exe use_allocator : use_allocator.cpp ;

exe cbor : cbor.cpp ;
Loading

0 comments on commit 159a8f3

Please sign in to comment.