Path: blob/main/contrib/libcbor/examples/CMakeLists.txt
39586 views
add_executable(readfile readfile.c)1target_link_libraries(readfile cbor)23add_executable(create_items create_items.c)4target_link_libraries(create_items cbor)56add_executable(streaming_parser streaming_parser.c)7target_link_libraries(streaming_parser cbor)89add_executable(streaming_array streaming_array.c)10target_link_libraries(streaming_array cbor)1112add_executable(sort sort.c)13target_link_libraries(sort cbor)1415add_executable(hello hello.c)16target_link_libraries(hello cbor)1718find_package(CJSON)1920if(CJSON_FOUND)21add_executable(cjson2cbor cjson2cbor.c)22target_include_directories(cjson2cbor PUBLIC ${CJSON_INCLUDE_DIRS})23target_link_libraries(cjson2cbor cbor ${CJSON_LIBRARY})2425add_executable(cbor2cjson cbor2cjson.c)26target_include_directories(cbor2cjson PUBLIC ${CJSON_INCLUDE_DIRS})27target_link_libraries(cbor2cjson cbor ${CJSON_LIBRARY})28endif()2930file(COPY data DESTINATION .)31323334