mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
map: Have cmake find libubus.h
Update CMakeList.txt to look for libubus.h since we depend on it. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
This commit is contained in:
parent
6a5cc2d085
commit
44ac4adb34
@ -5,6 +5,9 @@ project(mapcalc C)
|
|||||||
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -std=c99")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -std=c99")
|
||||||
|
|
||||||
|
FIND_PATH(ubus_include_dir libubus.h)
|
||||||
|
INCLUDE_DIRECTORIES(${ubus_include_dir})
|
||||||
|
|
||||||
add_definitions(-D_GNU_SOURCE -Wall -Wno-gnu -Wextra)
|
add_definitions(-D_GNU_SOURCE -Wall -Wno-gnu -Wextra)
|
||||||
|
|
||||||
add_executable(mapcalc mapcalc.c)
|
add_executable(mapcalc mapcalc.c)
|
||||||
|
Loading…
Reference in New Issue
Block a user