diff --git a/CMakeLists.txt b/CMakeLists.txt index 5121713b7..7b826fecf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,8 +4,6 @@ project(wakaama C) include(wakaama.cmake) -add_subdirectory(examples) - # Enable "test" target enable_testing() add_subdirectory(tests) diff --git a/CMakePresets.json b/CMakePresets.json index bbfdd41bd..44594e707 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -26,10 +26,6 @@ "WAKAAMA_MODE_SERVER": { "type": "BOOL", "value": "ON" - }, - "WAKAAMA_ENABLE_EXAMPLES": { - "type": "BOOL", - "value": "ON" } } }, @@ -41,10 +37,6 @@ "WAKAAMA_MODE_BOOTSTRAP_SERVER": { "type": "BOOL", "value": "ON" - }, - "WAKAAMA_ENABLE_EXAMPLES": { - "type": "BOOL", - "value": "ON" } } }, @@ -61,10 +53,6 @@ "type": "BOOL", "value": "ON" }, - "WAKAAMA_ENABLE_EXAMPLES": { - "type": "BOOL", - "value": "ON" - }, "WAKAAMA_DATA_SENML_JSON": { "type": "BOOL", "value": "ON" @@ -100,10 +88,6 @@ "hidden": true, "inherits": "base", "cacheVariables": { - "WAKAAMA_ENABLE_EXAMPLES": { - "type": "BOOL", - "value": "OFF" - }, "WAKAAMA_DATA_TLV": { "type": "BOOL", "value": "ON" @@ -123,10 +107,6 @@ "WAKAAMA_LOG_CUSTOM_HANDLER": { "type": "BOOL", "value": "ON" - }, - "WAKAAMA_ENABLE_EXAMPLES": { - "type": "BOOL", - "value": "OFF" } } }, diff --git a/README.md b/README.md index a7620519d..abbbd3cb3 100644 --- a/README.md +++ b/README.md @@ -170,9 +170,6 @@ pytest -v tests/integration ## Examples -The examples can be enabled (or disabled) with the CMake cache variable `WAKAAMA_ENABLE_EXAMPLES` (e.g. -`cmake -DWAKAAMA_ENABLE_EXAMPLES=OFF`). - There are some example applications provided to test the server, client and bootstrap capabilities of Wakaama. The following recipes assume you are on a unix like platform and you have cmake and make installed. diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt deleted file mode 100644 index c12966f2b..000000000 --- a/examples/CMakeLists.txt +++ /dev/null @@ -1,4 +0,0 @@ -cmake_minimum_required(VERSION 3.21) - -# Our examples are designed for POSIX systems -add_compile_definitions(_POSIX_C_SOURCE=200809)