Loading CMakeLists.txt +3 −8 Changes for CMakeLists.txt: 3 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -72,7 +72,6 @@ include_directories(${PROJECT_BINARY_DIR}/include/curl) include_directories( ${CURL_SOURCE_DIR}/include ) option(BUILD_CURL_EXE "Set to ON to build cURL executable." ON) option(BUILD_CURL_TESTS "Set to ON to build cURL tests." ON) option(CURL_STATICLIB "Set to ON to build libcurl with static linking." OFF) option(ENABLE_ARES "Set to ON to enable c-ares support" OFF) option(ENABLE_THREADED_RESOLVER "Set to ON to enable POSIX threaded DNS lookup" OFF) Loading Loading @@ -108,12 +107,6 @@ if(ENABLE_ARES) set(CURL_LIBS ${CURL_LIBS} ${CARES_LIBRARY}) endif() option(BUILD_DASHBOARD_REPORTS "Set to ON to activate reporting of cURL builds here http://www.cdash.org/CDashPublic/index.php?project=CURL" OFF) if(BUILD_DASHBOARD_REPORTS) #INCLUDE(Dart) include(CTest) endif(BUILD_DASHBOARD_REPORTS) if(MSVC) option(BUILD_RELEASE_DEBUG_DIRS "Set OFF to build each configuration to a separate directory" OFF) mark_as_advanced(BUILD_RELEASE_DEBUG_DIRS) Loading Loading @@ -1041,7 +1034,9 @@ add_subdirectory(lib) if(BUILD_CURL_EXE) add_subdirectory(src) endif() if(BUILD_CURL_TESTS) include(CTest) if(BUILD_TESTING) add_subdirectory(tests) endif() Loading tests/CMakeLists.txt +1 Changes for tests/CMakeLists.txt: 1 added line, 0 removed lines. Original line number Diff line number Diff line add_subdirectory(data) add_subdirectory(libtest) add_subdirectory(server) add_subdirectory(unit) tests/unit/CMakeLists.txt +46 Changes for tests/unit/CMakeLists.txt: 46 added lines, 0 removed lines. Original line number Diff line number Diff line set(UT_SRC unit1300.c unit1301.c unit1302.c unit1303.c unit1304.c unit1305.c unit1307.c unit1308.c unit1309.c unit1330.c # Broken link on Linux # unit1394.c unit1395.c unit1396.c unit1397.c unit1398.c unit1600.c unit1601.c unit1603.c # Broken link on Linux # unit1604.c ) set(UT_COMMON_FILES ../libtest/first.c ../libtest/test.h curlcheck.h) include_directories( ${CURL_SOURCE_DIR}/lib # To be able to reach "curl_setup_once.h" ${CURL_SOURCE_DIR}/tests/libtest ${CURL_SOURCE_DIR}/src ${CURL_BINARY_DIR}/lib # To be able to reach "curl_config.h" ${CURL_BINARY_DIR}/include # To be able to reach "curl/curlbuild.h" ) foreach(_testfile ${UT_SRC}) get_filename_component(_testname ${_testfile} NAME_WE) add_executable(${_testname} ${_testfile} ${UT_COMMON_FILES}) target_link_libraries(${_testname} libcurl ${CURL_LIBS}) set_target_properties(${_testname} PROPERTIES COMPILE_DEFINITIONS "UNITTESTS") add_test(NAME ${_testname} COMMAND ${_testname} "http://www.google.com" ) endforeach() Loading
CMakeLists.txt +3 −8 Changes for CMakeLists.txt: 3 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -72,7 +72,6 @@ include_directories(${PROJECT_BINARY_DIR}/include/curl) include_directories( ${CURL_SOURCE_DIR}/include ) option(BUILD_CURL_EXE "Set to ON to build cURL executable." ON) option(BUILD_CURL_TESTS "Set to ON to build cURL tests." ON) option(CURL_STATICLIB "Set to ON to build libcurl with static linking." OFF) option(ENABLE_ARES "Set to ON to enable c-ares support" OFF) option(ENABLE_THREADED_RESOLVER "Set to ON to enable POSIX threaded DNS lookup" OFF) Loading Loading @@ -108,12 +107,6 @@ if(ENABLE_ARES) set(CURL_LIBS ${CURL_LIBS} ${CARES_LIBRARY}) endif() option(BUILD_DASHBOARD_REPORTS "Set to ON to activate reporting of cURL builds here http://www.cdash.org/CDashPublic/index.php?project=CURL" OFF) if(BUILD_DASHBOARD_REPORTS) #INCLUDE(Dart) include(CTest) endif(BUILD_DASHBOARD_REPORTS) if(MSVC) option(BUILD_RELEASE_DEBUG_DIRS "Set OFF to build each configuration to a separate directory" OFF) mark_as_advanced(BUILD_RELEASE_DEBUG_DIRS) Loading Loading @@ -1041,7 +1034,9 @@ add_subdirectory(lib) if(BUILD_CURL_EXE) add_subdirectory(src) endif() if(BUILD_CURL_TESTS) include(CTest) if(BUILD_TESTING) add_subdirectory(tests) endif() Loading
tests/CMakeLists.txt +1 Changes for tests/CMakeLists.txt: 1 added line, 0 removed lines. Original line number Diff line number Diff line add_subdirectory(data) add_subdirectory(libtest) add_subdirectory(server) add_subdirectory(unit)
tests/unit/CMakeLists.txt +46 Changes for tests/unit/CMakeLists.txt: 46 added lines, 0 removed lines. Original line number Diff line number Diff line set(UT_SRC unit1300.c unit1301.c unit1302.c unit1303.c unit1304.c unit1305.c unit1307.c unit1308.c unit1309.c unit1330.c # Broken link on Linux # unit1394.c unit1395.c unit1396.c unit1397.c unit1398.c unit1600.c unit1601.c unit1603.c # Broken link on Linux # unit1604.c ) set(UT_COMMON_FILES ../libtest/first.c ../libtest/test.h curlcheck.h) include_directories( ${CURL_SOURCE_DIR}/lib # To be able to reach "curl_setup_once.h" ${CURL_SOURCE_DIR}/tests/libtest ${CURL_SOURCE_DIR}/src ${CURL_BINARY_DIR}/lib # To be able to reach "curl_config.h" ${CURL_BINARY_DIR}/include # To be able to reach "curl/curlbuild.h" ) foreach(_testfile ${UT_SRC}) get_filename_component(_testname ${_testfile} NAME_WE) add_executable(${_testname} ${_testfile} ${UT_COMMON_FILES}) target_link_libraries(${_testname} libcurl ${CURL_LIBS}) set_target_properties(${_testname} PROPERTIES COMPILE_DEFINITIONS "UNITTESTS") add_test(NAME ${_testname} COMMAND ${_testname} "http://www.google.com" ) endforeach()