1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
set(SOURCES
authentication_tests.cpp
building_request_tests.cpp
client_construction.cpp
compression_tests.cpp
connection_pool_tests.cpp
connections_and_errors.cpp
header_tests.cpp
http_client_fuzz_tests.cpp
http_client_tests.cpp
http_methods_tests.cpp
multiple_requests.cpp
oauth1_tests.cpp
oauth2_tests.cpp
pipeline_stage_tests.cpp
progress_handler_tests.cpp
proxy_tests.cpp
redirect_tests.cpp
request_helper_tests.cpp
request_stream_tests.cpp
request_uri_tests.cpp
response_extract_tests.cpp
response_stream_tests.cpp
status_code_reason_phrase_tests.cpp
to_string_tests.cpp
)
add_casablanca_test(httpclient_test SOURCES)
if(TEST_LIBRARY_TARGET_TYPE STREQUAL "OBJECT")
target_include_directories(httpclient_test PRIVATE ../utilities/include)
else()
target_link_libraries(httpclient_test PRIVATE httptest_utilities)
endif()
configure_pch(httpclient_test stdafx.h stdafx.cpp)
if(NOT WIN32)
cpprest_find_boost()
target_link_libraries(httpclient_test PRIVATE cpprestsdk_boost_internal)
endif()
|