Fix IPv6 read
[project/mdnsd.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 PROJECT(mdns C)
4 ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations)
5
6 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
7
8 SET(SOURCES main.c dns.c announce.c cache.c service.c util.c ubus.c interface.c)
9
10 SET(LIBS ubox ubus resolv blobmsg_json)
11
12 IF(DEBUG)
13   ADD_DEFINITIONS(-DDEBUG -g3)
14 ENDIF()
15
16 ADD_EXECUTABLE(mdns ${SOURCES})
17
18 TARGET_LINK_LIBRARIES(mdns ${LIBS})
19
20 INSTALL(TARGETS mdns
21         RUNTIME DESTINATION sbin
22 )