1 cmake_minimum_required(VERSION 2.6)
4 ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations)
6 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
8 SET(SOURCES main.c dns.c announce.c cache.c service.c util.c ubus.c interface.c)
10 SET(LIBS ubox ubus resolv blobmsg_json)
13 ADD_DEFINITIONS(-DDEBUG -g3)
16 ADD_EXECUTABLE(mdns ${SOURCES})
18 TARGET_LINK_LIBRARIES(mdns ${LIBS})
21 RUNTIME DESTINATION sbin