add some configuration code for interfaces, bind interfaces to regular devices
[project/netifd.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 PROJECT(netifd C)
4 ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3)
5
6 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
7
8 IF(DEBUG)
9   ADD_DEFINITIONS(-DDEBUG -O0)
10 ENDIF()
11
12 ADD_EXECUTABLE(netifd main.c interface.c proto.c config.c device.c bridge.c vlan.c ubus.c system-dummy.c)
13 TARGET_LINK_LIBRARIES(netifd ubox ubus uci)