X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=CMakeLists.txt;h=272915050207c8899585de5ab924f33079c0a7b9;hp=9e8f093f5ceac202bb048ec3d1d4834d045903a4;hb=fc20c7a0314afa07f4f873f1a2f1f0095bf8e519;hpb=a7c9ae6d6ac39d17670a2e881e296f7973f0fe77 diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e8f093..2729150 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,7 +26,18 @@ find_library(json json) IF(EXISTS ${json}) ADD_LIBRARY(blobmsg_json SHARED blobmsg_json.c) TARGET_LINK_LIBRARIES(blobmsg_json ubox json) - INSTALL(TARGETS blobmsg_json + + ADD_EXECUTABLE(jshn jshn.c) + TARGET_LINK_LIBRARIES(jshn json) + + INSTALL(TARGETS blobmsg_json jshn LIBRARY DESTINATION lib + RUNTIME DESTINATION bin ) + + FILE(GLOB scripts sh/*.sh) + INSTALL(FILES ${scripts} + DESTINATION share/libubox + ) + ENDIF()