include_directories(
    ${CMAKE_SOURCE_DIR}/src
)

add_executable(connection_test
    connection_test.cpp
)

if(WIN32)
    target_link_libraries (connection_test httppp-static ws2_32)
else()
    target_link_libraries (connection_test httppp-static)
endif()

add_test(connection_test connection_test)

add_executable(url_test
    url.cpp
)

if(WIN32)
    target_link_libraries (url_test httppp-static ws2_32)
else()
    target_link_libraries (url_test httppp-static)
endif()

add_executable(client_test
    client.cpp
)

if(WIN32)
    target_link_libraries (client_test httppp-static ws2_32)
else()
    target_link_libraries (client_test httppp-static)
endif()
