Skip to content

Commit 159a8f3

Browse files
committed
add CBOR example
1 parent 57d42f0 commit 159a8f3

File tree

5 files changed

+488
-0
lines changed

5 files changed

+488
-0
lines changed

doc/qbk/examples.qbk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,9 @@
2424
[example_use_allocator]
2525
[endsect]
2626

27+
[section CBOR]
28+
[example_cbor]
29+
[endsect]
30+
2731
[endsect]
2832

doc/qbk/main.qbk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
[import ../../example/pretty.cpp]
123123
[import ../../example/validate.cpp]
124124
[import ../../example/use_allocator.cpp]
125+
[import ../../example/cbor.cpp]
125126
[import ../../include/boost/json/impl/serialize.ipp]
126127
[import ../../test/doc_background.cpp]
127128
[import ../../test/doc_parsing.cpp]

example/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,11 @@ add_executable(use_allocator
8080
)
8181
set_property(TARGET use_allocator PROPERTY FOLDER "example")
8282
target_link_libraries(use_allocator PRIVATE Boost::json)
83+
84+
#
85+
86+
add_executable(cbor
87+
cbor.cpp
88+
)
89+
set_property(TARGET cbor PROPERTY FOLDER "example")
90+
target_link_libraries(cbor PRIVATE Boost::json)

example/Jamfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ exe proxy : proxy.cpp ;
2424
exe validate : validate.cpp ;
2525

2626
exe use_allocator : use_allocator.cpp ;
27+
28+
exe cbor : cbor.cpp ;

0 commit comments

Comments
 (0)