fixed miniupnpc/CMakeLists.txt

This commit is contained in:
Thomas Bernard 2012-06-20 23:13:03 +02:00
parent 5d3dc1a290
commit 5e05f913e6
2 changed files with 7 additions and 2 deletions

View File

@ -30,6 +30,7 @@ endif (NO_GETADDRINFO)
if (NOT WIN32)
add_definitions (-DMINIUPNPC_SET_SOCKET_TIMEOUT)
add_definitions (-D_BSD_SOURCE -D_POSIX_C_SOURCE=1)
else (NOT WIN32)
add_definitions (-D_WIN32_WINNT=0x0501) # XP or higher for getnameinfo and friends
endif (NOT WIN32)
@ -76,6 +77,7 @@ set (MINIUPNPC_SOURCES
upnperrors.c
connecthostport.c
portlistingparse.c
receivedata.c
)
if (NOT WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "AmigaOS")
@ -136,14 +138,14 @@ if (UPNPC_BUILD_TESTS)
add_executable (testigddescparse testigddescparse.c
igd_desc_parse.c minixml.c miniupnpc.c miniwget.c minissdpc.c
upnpcommands.c upnpreplyparse.c minisoap.c connecthostport.c
portlistingparse.c
portlistingparse.c receivedata.c
)
target_link_libraries (testigddescparse ${LDLIBS})
add_executable (testminiwget testminiwget.c
miniwget.c miniupnpc.c minisoap.c upnpcommands.c minissdpc.c
upnpreplyparse.c minixml.c igd_desc_parse.c connecthostport.c
portlistingparse.c
portlistingparse.c receivedata.c
)
target_link_libraries (testminiwget ${LDLIBS})

View File

@ -1,6 +1,9 @@
$Id: Changelog.txt,v 1.171 2012/06/20 21:05:56 nanard Exp $
miniUPnP client Changelog.
2012/06/20:
fixed CMakeLists.txt
2012/05/29
Improvements in testminiwget.sh