forked from loafle/openapi-generator-original
[cpp-restsdk] Change build folder structure to match include folder structure in installed client (#11487)
* change source folder structure * fix importMapping
This commit is contained in:
@@ -1,40 +1,40 @@
|
||||
.gitignore
|
||||
ApiClient.cpp
|
||||
ApiClient.h
|
||||
ApiConfiguration.cpp
|
||||
ApiConfiguration.h
|
||||
ApiException.cpp
|
||||
ApiException.h
|
||||
CMakeLists.txt
|
||||
Config.cmake.in
|
||||
HttpContent.cpp
|
||||
HttpContent.h
|
||||
IHttpBody.h
|
||||
JsonBody.cpp
|
||||
JsonBody.h
|
||||
ModelBase.cpp
|
||||
ModelBase.h
|
||||
MultipartFormData.cpp
|
||||
MultipartFormData.h
|
||||
Object.cpp
|
||||
Object.h
|
||||
README.md
|
||||
api/PetApi.cpp
|
||||
api/PetApi.h
|
||||
api/StoreApi.cpp
|
||||
api/StoreApi.h
|
||||
api/UserApi.cpp
|
||||
api/UserApi.h
|
||||
git_push.sh
|
||||
model/ApiResponse.cpp
|
||||
model/ApiResponse.h
|
||||
model/Category.cpp
|
||||
model/Category.h
|
||||
model/Order.cpp
|
||||
model/Order.h
|
||||
model/Pet.cpp
|
||||
model/Pet.h
|
||||
model/Tag.cpp
|
||||
model/Tag.h
|
||||
model/User.cpp
|
||||
model/User.h
|
||||
include/CppRestPetstoreClient/ApiClient.h
|
||||
include/CppRestPetstoreClient/ApiConfiguration.h
|
||||
include/CppRestPetstoreClient/ApiException.h
|
||||
include/CppRestPetstoreClient/HttpContent.h
|
||||
include/CppRestPetstoreClient/IHttpBody.h
|
||||
include/CppRestPetstoreClient/JsonBody.h
|
||||
include/CppRestPetstoreClient/ModelBase.h
|
||||
include/CppRestPetstoreClient/MultipartFormData.h
|
||||
include/CppRestPetstoreClient/Object.h
|
||||
include/CppRestPetstoreClient/api/PetApi.h
|
||||
include/CppRestPetstoreClient/api/StoreApi.h
|
||||
include/CppRestPetstoreClient/api/UserApi.h
|
||||
include/CppRestPetstoreClient/model/ApiResponse.h
|
||||
include/CppRestPetstoreClient/model/Category.h
|
||||
include/CppRestPetstoreClient/model/Order.h
|
||||
include/CppRestPetstoreClient/model/Pet.h
|
||||
include/CppRestPetstoreClient/model/Tag.h
|
||||
include/CppRestPetstoreClient/model/User.h
|
||||
src/ApiClient.cpp
|
||||
src/ApiConfiguration.cpp
|
||||
src/ApiException.cpp
|
||||
src/HttpContent.cpp
|
||||
src/JsonBody.cpp
|
||||
src/ModelBase.cpp
|
||||
src/MultipartFormData.cpp
|
||||
src/Object.cpp
|
||||
src/api/PetApi.cpp
|
||||
src/api/StoreApi.cpp
|
||||
src/api/UserApi.cpp
|
||||
src/model/ApiResponse.cpp
|
||||
src/model/Category.cpp
|
||||
src/model/Order.cpp
|
||||
src/model/Pet.cpp
|
||||
src/model/Tag.cpp
|
||||
src/model/User.cpp
|
||||
|
||||
@@ -29,8 +29,8 @@ find_package(Boost REQUIRED)
|
||||
include(GNUInstallDirs)
|
||||
include(CMakePackageConfigHelpers)
|
||||
|
||||
file(GLOB_RECURSE HEADER_FILES "*.h")
|
||||
file(GLOB_RECURSE SOURCE_FILES "*.cpp")
|
||||
file(GLOB_RECURSE HEADER_FILES "include/*.h")
|
||||
file(GLOB_RECURSE SOURCE_FILES "src/*.cpp")
|
||||
|
||||
add_library(${PROJECT_NAME} ${HEADER_FILES} ${SOURCE_FILES})
|
||||
|
||||
@@ -42,7 +42,7 @@ target_compile_options(${PROJECT_NAME}
|
||||
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
||||
)
|
||||
|
||||
@@ -76,9 +76,8 @@ install(
|
||||
)
|
||||
|
||||
install(
|
||||
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
|
||||
FILES_MATCHING PATTERN "*.h"
|
||||
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/${PROJECT_NAME}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
)
|
||||
|
||||
install(
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@PACKAGE_INIT@
|
||||
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@-targets.cmake)
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake)
|
||||
|
||||
check_required_components("@PROJECT_NAME@")
|
||||
|
||||
@@ -19,14 +19,10 @@
|
||||
#define ORG_OPENAPITOOLS_CLIENT_API_ApiClient_H_
|
||||
|
||||
|
||||
#include "ApiConfiguration.h"
|
||||
#include "ApiException.h"
|
||||
#include "IHttpBody.h"
|
||||
#include "HttpContent.h"
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <functional>
|
||||
#include "CppRestPetstoreClient/ApiConfiguration.h"
|
||||
#include "CppRestPetstoreClient/ApiException.h"
|
||||
#include "CppRestPetstoreClient/IHttpBody.h"
|
||||
#include "CppRestPetstoreClient/HttpContent.h"
|
||||
|
||||
#if defined (_WIN32) || defined (_WIN64)
|
||||
#undef U
|
||||
@@ -35,6 +31,10 @@
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <cpprest/http_client.h>
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <functional>
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
namespace client {
|
||||
@@ -20,10 +20,11 @@
|
||||
|
||||
|
||||
|
||||
#include <map>
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <cpprest/http_client.h>
|
||||
|
||||
#include <map>
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
namespace client {
|
||||
@@ -20,12 +20,11 @@
|
||||
|
||||
|
||||
|
||||
#include <memory>
|
||||
#include <map>
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <cpprest/http_msg.h>
|
||||
|
||||
#include <memory>
|
||||
#include <map>
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
namespace client {
|
||||
@@ -19,7 +19,7 @@
|
||||
#define ORG_OPENAPITOOLS_CLIENT_MODEL_JsonBody_H_
|
||||
|
||||
|
||||
#include "IHttpBody.h"
|
||||
#include "CppRestPetstoreClient/IHttpBody.h"
|
||||
|
||||
#include <cpprest/json.h>
|
||||
|
||||
@@ -19,15 +19,16 @@
|
||||
#define ORG_OPENAPITOOLS_CLIENT_MODEL_ModelBase_H_
|
||||
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
#include "HttpContent.h"
|
||||
#include "MultipartFormData.h"
|
||||
#include "CppRestPetstoreClient/HttpContent.h"
|
||||
#include "CppRestPetstoreClient/MultipartFormData.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <cpprest/json.h>
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
namespace client {
|
||||
@@ -19,16 +19,15 @@
|
||||
#define ORG_OPENAPITOOLS_CLIENT_MODEL_MultipartFormData_H_
|
||||
|
||||
|
||||
#include "IHttpBody.h"
|
||||
#include "HttpContent.h"
|
||||
#include "CppRestPetstoreClient/IHttpBody.h"
|
||||
#include "CppRestPetstoreClient/HttpContent.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
namespace client {
|
||||
@@ -19,7 +19,7 @@
|
||||
#define ORG_OPENAPITOOLS_CLIENT_MODEL_Object_H_
|
||||
|
||||
|
||||
#include "ModelBase.h"
|
||||
#include "CppRestPetstoreClient/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <cpprest/json.h>
|
||||
@@ -20,11 +20,11 @@
|
||||
|
||||
|
||||
|
||||
#include "ApiClient.h"
|
||||
#include "CppRestPetstoreClient/ApiClient.h"
|
||||
|
||||
#include "model/ApiResponse.h"
|
||||
#include "HttpContent.h"
|
||||
#include "model/Pet.h"
|
||||
#include "CppRestPetstoreClient/model/ApiResponse.h"
|
||||
#include "CppRestPetstoreClient/HttpContent.h"
|
||||
#include "CppRestPetstoreClient/model/Pet.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
|
||||
|
||||
|
||||
#include "ApiClient.h"
|
||||
#include "CppRestPetstoreClient/ApiClient.h"
|
||||
|
||||
#include "model/Order.h"
|
||||
#include "CppRestPetstoreClient/model/Order.h"
|
||||
#include <map>
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <boost/optional.hpp>
|
||||
@@ -20,9 +20,9 @@
|
||||
|
||||
|
||||
|
||||
#include "ApiClient.h"
|
||||
#include "CppRestPetstoreClient/ApiClient.h"
|
||||
|
||||
#include "model/User.h"
|
||||
#include "CppRestPetstoreClient/model/User.h"
|
||||
#include <vector>
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <boost/optional.hpp>
|
||||
@@ -19,7 +19,7 @@
|
||||
#define ORG_OPENAPITOOLS_CLIENT_MODEL_ApiResponse_H_
|
||||
|
||||
|
||||
#include "ModelBase.h"
|
||||
#include "CppRestPetstoreClient/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#define ORG_OPENAPITOOLS_CLIENT_MODEL_Category_H_
|
||||
|
||||
|
||||
#include "ModelBase.h"
|
||||
#include "CppRestPetstoreClient/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#define ORG_OPENAPITOOLS_CLIENT_MODEL_Order_H_
|
||||
|
||||
|
||||
#include "ModelBase.h"
|
||||
#include "CppRestPetstoreClient/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
@@ -19,12 +19,12 @@
|
||||
#define ORG_OPENAPITOOLS_CLIENT_MODEL_Pet_H_
|
||||
|
||||
|
||||
#include "ModelBase.h"
|
||||
#include "CppRestPetstoreClient/ModelBase.h"
|
||||
|
||||
#include "model/Tag.h"
|
||||
#include "CppRestPetstoreClient/model/Tag.h"
|
||||
#include "CppRestPetstoreClient/model/Category.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <vector>
|
||||
#include "model/Category.h"
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
@@ -19,7 +19,7 @@
|
||||
#define ORG_OPENAPITOOLS_CLIENT_MODEL_Tag_H_
|
||||
|
||||
|
||||
#include "ModelBase.h"
|
||||
#include "CppRestPetstoreClient/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#define ORG_OPENAPITOOLS_CLIENT_MODEL_User_H_
|
||||
|
||||
|
||||
#include "ModelBase.h"
|
||||
#include "CppRestPetstoreClient/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
#include "ApiClient.h"
|
||||
#include "MultipartFormData.h"
|
||||
#include "ModelBase.h"
|
||||
#include "CppRestPetstoreClient/ApiClient.h"
|
||||
#include "CppRestPetstoreClient/MultipartFormData.h"
|
||||
#include "CppRestPetstoreClient/ModelBase.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <limits>
|
||||
@@ -9,7 +9,7 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
#include "ApiConfiguration.h"
|
||||
#include "CppRestPetstoreClient/ApiConfiguration.h"
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
@@ -9,7 +9,7 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
#include "ApiException.h"
|
||||
#include "CppRestPetstoreClient/ApiException.h"
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
@@ -9,7 +9,7 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
#include "HttpContent.h"
|
||||
#include "CppRestPetstoreClient/HttpContent.h"
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
@@ -9,7 +9,7 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
#include "JsonBody.h"
|
||||
#include "CppRestPetstoreClient/JsonBody.h"
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
@@ -9,7 +9,7 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
#include "ModelBase.h"
|
||||
#include "CppRestPetstoreClient/ModelBase.h"
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
@@ -9,8 +9,8 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
#include "MultipartFormData.h"
|
||||
#include "ModelBase.h"
|
||||
#include "CppRestPetstoreClient/MultipartFormData.h"
|
||||
#include "CppRestPetstoreClient/ModelBase.h"
|
||||
|
||||
#include <boost/uuid/random_generator.hpp>
|
||||
#include <boost/uuid/uuid_io.hpp>
|
||||
@@ -9,7 +9,7 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
#include "Object.h"
|
||||
#include "CppRestPetstoreClient/Object.h"
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
@@ -10,15 +10,15 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "PetApi.h"
|
||||
#include "IHttpBody.h"
|
||||
#include "JsonBody.h"
|
||||
#include "MultipartFormData.h"
|
||||
|
||||
#include <unordered_set>
|
||||
#include "CppRestPetstoreClient/api/PetApi.h"
|
||||
#include "CppRestPetstoreClient/IHttpBody.h"
|
||||
#include "CppRestPetstoreClient/JsonBody.h"
|
||||
#include "CppRestPetstoreClient/MultipartFormData.h"
|
||||
|
||||
#include <boost/algorithm/string/replace.hpp>
|
||||
|
||||
#include <unordered_set>
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
namespace client {
|
||||
@@ -10,15 +10,15 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "StoreApi.h"
|
||||
#include "IHttpBody.h"
|
||||
#include "JsonBody.h"
|
||||
#include "MultipartFormData.h"
|
||||
|
||||
#include <unordered_set>
|
||||
#include "CppRestPetstoreClient/api/StoreApi.h"
|
||||
#include "CppRestPetstoreClient/IHttpBody.h"
|
||||
#include "CppRestPetstoreClient/JsonBody.h"
|
||||
#include "CppRestPetstoreClient/MultipartFormData.h"
|
||||
|
||||
#include <boost/algorithm/string/replace.hpp>
|
||||
|
||||
#include <unordered_set>
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
namespace client {
|
||||
@@ -10,15 +10,15 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "UserApi.h"
|
||||
#include "IHttpBody.h"
|
||||
#include "JsonBody.h"
|
||||
#include "MultipartFormData.h"
|
||||
|
||||
#include <unordered_set>
|
||||
#include "CppRestPetstoreClient/api/UserApi.h"
|
||||
#include "CppRestPetstoreClient/IHttpBody.h"
|
||||
#include "CppRestPetstoreClient/JsonBody.h"
|
||||
#include "CppRestPetstoreClient/MultipartFormData.h"
|
||||
|
||||
#include <boost/algorithm/string/replace.hpp>
|
||||
|
||||
#include <unordered_set>
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
namespace client {
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
|
||||
|
||||
#include "ApiResponse.h"
|
||||
#include "CppRestPetstoreClient/model/ApiResponse.h"
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
@@ -20,7 +20,6 @@ namespace model {
|
||||
|
||||
|
||||
|
||||
|
||||
ApiResponse::ApiResponse()
|
||||
{
|
||||
m_Code = 0;
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
|
||||
|
||||
#include "Category.h"
|
||||
#include "CppRestPetstoreClient/model/Category.h"
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
@@ -20,7 +20,6 @@ namespace model {
|
||||
|
||||
|
||||
|
||||
|
||||
Category::Category()
|
||||
{
|
||||
m_Id = 0L;
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
|
||||
|
||||
#include "Order.h"
|
||||
#include "CppRestPetstoreClient/model/Order.h"
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
@@ -20,7 +20,6 @@ namespace model {
|
||||
|
||||
|
||||
|
||||
|
||||
Order::Order()
|
||||
{
|
||||
m_Id = 0L;
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
|
||||
|
||||
#include "Pet.h"
|
||||
#include "CppRestPetstoreClient/model/Pet.h"
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
@@ -20,7 +20,6 @@ namespace model {
|
||||
|
||||
|
||||
|
||||
|
||||
Pet::Pet()
|
||||
{
|
||||
m_Id = 0L;
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
|
||||
|
||||
#include "Tag.h"
|
||||
#include "CppRestPetstoreClient/model/Tag.h"
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
@@ -20,7 +20,6 @@ namespace model {
|
||||
|
||||
|
||||
|
||||
|
||||
Tag::Tag()
|
||||
{
|
||||
m_Id = 0L;
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
|
||||
|
||||
#include "User.h"
|
||||
#include "CppRestPetstoreClient/model/User.h"
|
||||
|
||||
namespace org {
|
||||
namespace openapitools {
|
||||
@@ -20,7 +20,6 @@ namespace model {
|
||||
|
||||
|
||||
|
||||
|
||||
User::User()
|
||||
{
|
||||
m_Id = 0L;
|
||||
Reference in New Issue
Block a user