Lukas Woodtli d2e60f59b3
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
2022-08-27 18:10:28 +08:00

26 lines
566 B
CMake

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)