From 23cfcee20f43d824d61fadef48af84a83d5b8816 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 9 Sep 2011 21:30:59 +0200 Subject: add work in progress code for enumerating shell protocol handlers --- CMakeLists.txt | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index c06733e..43ced00 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,9 +5,20 @@ ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3) SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") +IF(APPLE) + INCLUDE_DIRECTORIES(/opt/local/include) + LINK_DIRECTORIES(/opt/local/lib) +ENDIF() + IF(DEBUG) ADD_DEFINITIONS(-DDEBUG -O0) ENDIF() -ADD_EXECUTABLE(netifd main.c utils.c interface.c interface-ip.c proto.c proto-static.c config.c device.c bridge.c vlan.c ubus.c system-dummy.c) -TARGET_LINK_LIBRARIES(netifd ubox ubus uci) + +ADD_EXECUTABLE(netifd + main.c utils.c interface.c interface-ip.c + proto.c proto-static.c proto-shell.c + config.c device.c bridge.c vlan.c ubus.c + system-dummy.c) + +TARGET_LINK_LIBRARIES(netifd ubox ubus uci json) -- cgit v1.2.1