X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuqmi.git;a=blobdiff_plain;f=CMakeLists.txt;fp=CMakeLists.txt;h=96ebd47c678613a0a91027b65fdb8e53a65da82c;hp=4a115449ea4df8e6e8d569d81973e64a6828eb9a;hb=23337736a43845ff5b24b7ab8556572d703cd294;hpb=22a64fe3e9a7b5dcf97d0b240f2ce09919f4b02f diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a11544..96ebd47 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,11 @@ SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") SET(SOURCES main.c dev.c commands.c qmi-message.c) +FIND_PATH(ubox_include_dir libubox/usock.h) +FIND_PATH(blobmsg_json_include_dir libubox/blobmsg_json.h) +FIND_PATH(json_include_dir json-c/json.h json/json.h json.h) +INCLUDE_DIRECTORIES(${ubox_include_dir} ${blobmsg_json_include_dir} ${json_include_dir}) + IF(BUILD_STATIC) FIND_LIBRARY(json NAMES libjson.a libjson-c.a) FIND_LIBRARY(blobmsg_json NAMES libblobmsg_json.a)