Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/libcbor/examples/CMakeLists.txt
39586 views
1
add_executable(readfile readfile.c)
2
target_link_libraries(readfile cbor)
3
4
add_executable(create_items create_items.c)
5
target_link_libraries(create_items cbor)
6
7
add_executable(streaming_parser streaming_parser.c)
8
target_link_libraries(streaming_parser cbor)
9
10
add_executable(streaming_array streaming_array.c)
11
target_link_libraries(streaming_array cbor)
12
13
add_executable(sort sort.c)
14
target_link_libraries(sort cbor)
15
16
add_executable(hello hello.c)
17
target_link_libraries(hello cbor)
18
19
find_package(CJSON)
20
21
if(CJSON_FOUND)
22
add_executable(cjson2cbor cjson2cbor.c)
23
target_include_directories(cjson2cbor PUBLIC ${CJSON_INCLUDE_DIRS})
24
target_link_libraries(cjson2cbor cbor ${CJSON_LIBRARY})
25
26
add_executable(cbor2cjson cbor2cjson.c)
27
target_include_directories(cbor2cjson PUBLIC ${CJSON_INCLUDE_DIRS})
28
target_link_libraries(cbor2cjson cbor ${CJSON_LIBRARY})
29
endif()
30
31
file(COPY data DESTINATION .)
32
33
34