X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=CMakeLists.txt;h=00b3b410c87530773b741a6bf6e5a32e011bb143;hb=29c066cfd60cc9101201a2c31a9aa66288288719;hp=eb112af20b54582785e7b0ffa80e22365d559f27;hpb=cddd9326dc9686a450005c8d53a36b06e3e60e8e;p=project%2Flibubox.git diff --git a/CMakeLists.txt b/CMakeLists.txt index eb112af..00b3b41 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,14 +1,16 @@ cmake_minimum_required(VERSION 2.6) PROJECT(ubox C) -ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3) +ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations) + +OPTION(BUILD_LUA "build Lua plugin" ON) IF(APPLE) INCLUDE_DIRECTORIES(/opt/local/include) LINK_DIRECTORIES(/opt/local/lib) ENDIF() -SET(SOURCES avl.c avl-cmp.c blob.c blobmsg.c uloop.c usock.c vlist.c) +SET(SOURCES avl.c avl-cmp.c blob.c blobmsg.c uloop.c usock.c ustream.c ustream-fd.c vlist.c) ADD_LIBRARY(ubox SHARED ${SOURCES}) @@ -22,6 +24,8 @@ INSTALL(TARGETS ubox LIBRARY DESTINATION lib ) +ADD_SUBDIRECTORY(lua) + find_library(json json) IF(EXISTS ${json}) ADD_LIBRARY(blobmsg_json SHARED blobmsg_json.c)