Rename project to umdns
[project/mdnsd.git] / CMakeLists.txt
index f191fa5..a52e5bd 100644 (file)
@@ -1,22 +1,22 @@
 cmake_minimum_required(VERSION 2.6)
 
-PROJECT(mdns C)
+PROJECT(umdns C)
 ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations)
 
 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
 
 SET(SOURCES main.c dns.c announce.c cache.c service.c util.c ubus.c interface.c)
 
-SET(LIBS ubox ubus resolv blobmsg_json)
+SET(LIBS ubox ubus resolv blobmsg_json json-c)
 
 IF(DEBUG)
   ADD_DEFINITIONS(-DDEBUG -g3)
 ENDIF()
 
-ADD_EXECUTABLE(mdns ${SOURCES})
+ADD_EXECUTABLE(umdns ${SOURCES})
 
-TARGET_LINK_LIBRARIES(mdns ${LIBS})
+TARGET_LINK_LIBRARIES(umdns ${LIBS})
 
-INSTALL(TARGETS mdns
+INSTALL(TARGETS umdns
        RUNTIME DESTINATION sbin
 )