Initial client API V2

This commit is contained in:
Chunting Gu
2019-03-06 11:13:33 +08:00
parent b38b7e6d38
commit 9b8304f06c
38 changed files with 777 additions and 362 deletions
+16 -11
View File
@@ -8,6 +8,7 @@ endif()
project(webcc)
option(WEBCC_ENABLE_REST "Enable REST support?" ON)
option(WEBCC_ENABLE_SOAP "Enable SOAP support (need pugixml)?" ON)
option(WEBCC_ENABLE_SSL "Enable SSL/HTTPS support (need OpenSSL)?" OFF)
option(WEBCC_ENABLE_UNITTEST "Build unit test?" ON)
@@ -121,17 +122,18 @@ add_subdirectory(webcc)
if(WEBCC_ENABLE_EXAMPLES)
add_subdirectory(example/http_client)
add_subdirectory(example/http_async_client)
# add_subdirectory(example/http_async_client)
# For including jsoncpp as "json/json.h".
include_directories(${THIRD_PARTY_DIR}/src/jsoncpp)
if(WEBCC_ENABLE_REST)
# For including jsoncpp as "json/json.h".
include_directories(${THIRD_PARTY_DIR}/src/jsoncpp)
# REST examples need jsoncpp to parse and create JSON.
add_subdirectory(${THIRD_PARTY_DIR}/src/jsoncpp)
# REST examples need jsoncpp to parse and create JSON.
add_subdirectory(${THIRD_PARTY_DIR}/src/jsoncpp)
add_subdirectory(example/rest_book_server)
add_subdirectory(example/rest_book_client)
add_subdirectory(example/rest_book_async_client)
add_subdirectory(example/rest_book_server)
# add_subdirectory(example/rest_book_client)
# add_subdirectory(example/rest_book_async_client)
endif()
if(WEBCC_ENABLE_SOAP)
add_subdirectory(example/soap_calc_server)
@@ -143,8 +145,11 @@ if(WEBCC_ENABLE_EXAMPLES)
if(WEBCC_ENABLE_SSL)
add_subdirectory(example/http_ssl_client)
add_subdirectory(example/http_ssl_async_client)
add_subdirectory(example/github_rest_client)
# add_subdirectory(example/http_ssl_async_client)
if(WEBCC_ENABLE_REST)
# add_subdirectory(example/github_rest_client)
endif()
endif()
endif()