Fix testing of curl on windows

This commit is contained in:
Andy Cedilnik 2003-01-11 10:57:25 -05:00
parent aeb0865810
commit a0ffb9293f
3 changed files with 5 additions and 3 deletions

View File

@ -276,7 +276,7 @@ IF(BUILD_TESTING)
ADD_TEST(curl ${CMake_BINARY_DIR}/Source/cmaketest ADD_TEST(curl ${CMake_BINARY_DIR}/Source/cmaketest
${CMake_SOURCE_DIR}/Source/CTest/Curl ${CMake_SOURCE_DIR}/Source/CTest/Curl
${CMake_BINARY_DIR}/Tests/Curl ${CMake_BINARY_DIR}/Tests/Curl
curltest) LIBCURL)
IF (APPLE) IF (APPLE)
ADD_TEST(objc++ ${CMake_BINARY_DIR}/Source/cmaketest ADD_TEST(objc++ ${CMake_BINARY_DIR}/Source/cmaketest

View File

@ -356,5 +356,5 @@ IF(CURL_TESTING)
SUBDIRS(Testing) SUBDIRS(Testing)
ENDIF(CURL_TESTING) ENDIF(CURL_TESTING)
ADD_EXECUTABLE(curltest Testing/curltest.c) ADD_EXECUTABLE(LIBCURL Testing/curltest.c)
TARGET_LINK_LIBRARIES(curltest Curl) TARGET_LINK_LIBRARIES(LIBCURL Curl)

View File

@ -1,4 +1,6 @@
IF(WIN32) IF(WIN32)
SET(HAVE_LIBWINMM 1)
SET(HAVE_LIBWS2_32 1)
SET(HAVE_GETHOSTNAME 1) SET(HAVE_GETHOSTNAME 1)
SET(HAVE_GETHOSTBYADDR 1) SET(HAVE_GETHOSTBYADDR 1)
SET(HAVE_GETSERVBYNAME 1) SET(HAVE_GETSERVBYNAME 1)