Import ubus tools.
This commit is contained in:
12
cmake-modules/libubus.cmake
Normal file
12
cmake-modules/libubus.cmake
Normal file
@@ -0,0 +1,12 @@
|
||||
cmake_minimum_required(VERSION 2.8.11)
|
||||
|
||||
SET(UBUS_UNIX_SOCKET "/var/run/ubus.sock")
|
||||
SET(UBUS_MAX_MSGLEN 1048576)
|
||||
|
||||
ADD_DEFINITIONS( -DUBUS_UNIX_SOCKET="${UBUS_UNIX_SOCKET}")
|
||||
ADD_DEFINITIONS( -DUBUS_MAX_MSGLEN=${UBUS_MAX_MSGLEN})
|
||||
|
||||
set(UBUS_INCLUDE_PATH "${CMAKE_SOURCE_DIR}/3P/ubus")
|
||||
|
||||
include_directories(${UBUS_INCLUDE_PATH})
|
||||
|
||||
Reference in New Issue
Block a user