X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=CMakeLists.txt;h=00b3b410c87530773b741a6bf6e5a32e011bb143;hp=272915050207c8899585de5ab924f33079c0a7b9;hb=975ac3e5e30f1106b6b4ea69c8cbf10c7ce8483e;hpb=fda6079b30a4f47daf95c8b93b9c86afee008f45 diff --git a/CMakeLists.txt b/CMakeLists.txt index 2729150..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 blob.c blobmsg.c uloop.c usock.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)