version 1.1.1.1, 2012/02/21 23:16:22
|
version 1.1.1.2, 2013/07/22 00:36:10
|
Line 1
|
Line 1
|
cmake_minimum_required (VERSION 2.6) |
cmake_minimum_required (VERSION 2.6) |
|
|
project (miniupnpc C) |
project (miniupnpc C) |
set (MINIUPNPC_VERSION 1.5) | set (MINIUPNPC_VERSION 1.7) |
set (MINIUPNPC_API_VERSION 8) | set (MINIUPNPC_API_VERSION 9) |
|
|
if (NOT CMAKE_BUILD_TYPE) |
if (NOT CMAKE_BUILD_TYPE) |
if (WIN32) |
if (WIN32) |
Line 30 endif (NO_GETADDRINFO)
|
Line 30 endif (NO_GETADDRINFO)
|
|
|
if (NOT WIN32) |
if (NOT WIN32) |
add_definitions (-DMINIUPNPC_SET_SOCKET_TIMEOUT) |
add_definitions (-DMINIUPNPC_SET_SOCKET_TIMEOUT) |
|
add_definitions (-D_BSD_SOURCE -D_POSIX_C_SOURCE=1) |
else (NOT WIN32) |
else (NOT WIN32) |
add_definitions (-D_WIN32_WINNT=0x0501) # XP or higher for getnameinfo and friends |
add_definitions (-D_WIN32_WINNT=0x0501) # XP or higher for getnameinfo and friends |
endif (NOT WIN32) |
endif (NOT WIN32) |
Line 76 set (MINIUPNPC_SOURCES
|
Line 77 set (MINIUPNPC_SOURCES
|
upnperrors.c |
upnperrors.c |
connecthostport.c |
connecthostport.c |
portlistingparse.c |
portlistingparse.c |
|
receivedata.c |
) |
) |
|
|
if (NOT WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "AmigaOS") |
if (NOT WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "AmigaOS") |
Line 136 if (UPNPC_BUILD_TESTS)
|
Line 138 if (UPNPC_BUILD_TESTS)
|
add_executable (testigddescparse testigddescparse.c |
add_executable (testigddescparse testigddescparse.c |
igd_desc_parse.c minixml.c miniupnpc.c miniwget.c minissdpc.c |
igd_desc_parse.c minixml.c miniupnpc.c miniwget.c minissdpc.c |
upnpcommands.c upnpreplyparse.c minisoap.c connecthostport.c |
upnpcommands.c upnpreplyparse.c minisoap.c connecthostport.c |
portlistingparse.c | portlistingparse.c receivedata.c |
) |
) |
target_link_libraries (testigddescparse ${LDLIBS}) |
target_link_libraries (testigddescparse ${LDLIBS}) |
|
|
add_executable (testminiwget testminiwget.c |
add_executable (testminiwget testminiwget.c |
miniwget.c miniupnpc.c minisoap.c upnpcommands.c minissdpc.c |
miniwget.c miniupnpc.c minisoap.c upnpcommands.c minissdpc.c |
upnpreplyparse.c minixml.c igd_desc_parse.c connecthostport.c |
upnpreplyparse.c minixml.c igd_desc_parse.c connecthostport.c |
portlistingparse.c | portlistingparse.c receivedata.c |
) |
) |
target_link_libraries (testminiwget ${LDLIBS}) |
target_link_libraries (testminiwget ${LDLIBS}) |
|
|