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(sort sort.c) 11 target_link_libraries(sort cbor) 12 13 add_executable(hello hello.c) 14 target_link_libraries(hello cbor) 15 16 find_package(cJSON) 17 18 if(cJSON_FOUND) 19 add_executable(cjson2cbor cjson2cbor.c) 20 target_link_libraries(cjson2cbor cbor cjson) 21 endif() 22 23 file(COPY data DESTINATION .) 24 25