Description: Install json2cbor in cmake
Author: Shengqi Chen <harry@debian.org>
Forwarded: not-needed
Last-Update: 2026-02-24 
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/tools/json2cbor/CMakeLists.txt
+++ b/tools/json2cbor/CMakeLists.txt
@@ -6,4 +6,5 @@
   tinycbor_add_executable(json2cbor json2cbor.c)
   target_include_directories(json2cbor SYSTEM PUBLIC ${LIBCJSON_INCLUDE_DIRS})
   target_link_libraries(json2cbor ${LIBCJSON_LIBRARIES})
+  install(TARGETS json2cbor)
 endif()
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -157,6 +157,7 @@
 
 install(FILES
   ${PROJECT_SOURCE_DIR}/src/cbor.h
+  ${PROJECT_SOURCE_DIR}/src/cborjson.h
   ${PROJECT_BINARY_DIR}/tinycbor-version.h
   ${PROJECT_BINARY_DIR}/tinycbor-export.h
   DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/tinycbor
