X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=CMakeLists.txt;h=9ecce85ef33af929f79255694e36b1e58c6e4f42;hp=29809cc9c77b80a72041f61f00d744b60586fe8a;hb=df69022bebe444a0c2ec2c9316748dc1dd833b4e;hpb=4a3bb66cd415b1c11ec69590699fed16eddd7bbb diff --git a/CMakeLists.txt b/CMakeLists.txt index 29809cc..9ecce85 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,9 @@ cmake_minimum_required(VERSION 2.6) PROJECT(ubus 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) SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") @@ -25,6 +27,8 @@ TARGET_LINK_LIBRARIES(ubus-example ubus ubox) SET(CMAKE_INSTALL_PREFIX /usr) +ADD_SUBDIRECTORY(lua) + INSTALL(TARGETS ubus cli LIBRARY DESTINATION lib RUNTIME DESTINATION bin