2013-01-17 13:15:16 +01:00
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
|
|
|
|
add_definitions(-D_GNU_SOURCE)
|
|
|
|
|
|
|
|
set(TINYSVCMDNS-SOURCES
|
|
|
|
mdns.c
|
|
|
|
mdnsd.c
|
|
|
|
)
|
|
|
|
|
2013-01-18 16:56:07 +01:00
|
|
|
find_library(PTHREAD
|
|
|
|
pthreadGC2
|
|
|
|
)
|
|
|
|
|
2013-01-17 13:15:16 +01:00
|
|
|
add_library(tinysvcmdns STATIC
|
|
|
|
${TINYSVCMDNS-SOURCES}
|
|
|
|
)
|
2013-01-18 13:59:10 +01:00
|
|
|
|
|
|
|
target_link_libraries(tinysvcmdns
|
2013-01-18 16:56:07 +01:00
|
|
|
${PTHREAD}
|
2013-01-18 14:00:21 +01:00
|
|
|
ws2_32
|
2013-01-18 13:59:10 +01:00
|
|
|
)
|