forked from loafle/openapi-generator-original
Cpp restbed server improvements (#13030)
* Keep old implementation of cpp-restbed generator as cpp-restbed-server-deprecated * Refactor operation path processing * Restructure samples directory to better allow writing tests * Improve templates for cpp-restbed-server Improve templates * Add integration tests * Improvement in templates for cpp-restbed-server * Fix tests * Improve cpp-restbed generator * Improve cpp-restbed-server * Add more tests * Add suppoert for arrays of enums in query params * Generate CMakeLists.txt * Small improvements and example in Readme * Add integration tests to maven project * Update doc
This commit is contained in:
25
samples/server/petstore/cpp-restbed/cmake/dependencies.cmake
Normal file
25
samples/server/petstore/cpp-restbed/cmake/dependencies.cmake
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
## Restbed
|
||||
FetchContent_Declare(
|
||||
restbed
|
||||
GIT_REPOSITORY https://github.com/Corvusoft/restbed
|
||||
GIT_TAG 4.7
|
||||
)
|
||||
|
||||
set(BUILD_TESTS OFF CACHE BOOL "Disable internal restbed tests")
|
||||
set(BUILD_SSL OFF CACHE BOOL "Disable SSL")
|
||||
FetchContent_MakeAvailable(restbed)
|
||||
|
||||
FetchContent_GetProperties(restbed)
|
||||
if(NOT restbed_POPULATED)
|
||||
|
||||
FetchContent_Populate(restbed)
|
||||
add_subdirectory(${restbed_SOURCE_DIR} ${restbed_BINARY_DIR})
|
||||
endif()
|
||||
|
||||
|
||||
## Boost
|
||||
find_package(Boost 1.7.0 COMPONENTS system unit_test_framework REQUIRED)
|
||||
Reference in New Issue
Block a user