Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-09-27 15:30:33 +0400
committerFelix Fietkau <nbd@openwrt.org>2012-09-27 15:41:02 +0400
commita81cb397efa3fd705d0989d992b677e57f237413 (patch)
tree4473dcac26ebdf7278239646800c2cf7cc8b4c4e /CMakeLists.txt
parentcca2ed6c8cdb3555fea43ff63ba1c9905dd7a164 (diff)
add lua binding for uloop (written by John Crispin)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index eb112af..5bed1e2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,6 +3,8 @@ cmake_minimum_required(VERSION 2.6)
PROJECT(ubox C)
ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3)
+OPTION(BUILD_LUA "build Lua plugin" ON)
+
IF(APPLE)
INCLUDE_DIRECTORIES(/opt/local/include)
LINK_DIRECTORIES(/opt/local/lib)
@@ -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)