2021-10-01 23:46:00 +00:00
|
|
|
add_executable(readfile readfile.c)
|
|
|
|
target_link_libraries(readfile cbor)
|
|
|
|
|
|
|
|
add_executable(create_items create_items.c)
|
|
|
|
target_link_libraries(create_items cbor)
|
|
|
|
|
|
|
|
add_executable(streaming_parser streaming_parser.c)
|
|
|
|
target_link_libraries(streaming_parser cbor)
|
|
|
|
|
2023-04-20 23:17:42 +00:00
|
|
|
add_executable(streaming_array streaming_array.c)
|
|
|
|
target_link_libraries(streaming_array cbor)
|
|
|
|
|
2021-10-01 23:46:00 +00:00
|
|
|
add_executable(sort sort.c)
|
|
|
|
target_link_libraries(sort cbor)
|
|
|
|
|
|
|
|
add_executable(hello hello.c)
|
|
|
|
target_link_libraries(hello cbor)
|
|
|
|
|
|
|
|
find_package(CJSON)
|
|
|
|
|
|
|
|
if(CJSON_FOUND)
|
|
|
|
add_executable(cjson2cbor cjson2cbor.c)
|
|
|
|
target_include_directories(cjson2cbor PUBLIC ${CJSON_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(cjson2cbor cbor ${CJSON_LIBRARY})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(COPY data DESTINATION .)
|
|
|
|
|