Skip to content

Commit

Permalink
cmake: Remove option for examples
Browse files Browse the repository at this point in the history
The examples are now individual projects, which use Wakaama as external
dependency. There is no need anymore to enable the examples in the CMake
project.
  • Loading branch information
LukasWoodtli committed Sep 10, 2024
1 parent 00fb991 commit c76a0b2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 29 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ project(wakaama C)

include(wakaama.cmake)

add_subdirectory(examples)

# Enable "test" target
enable_testing()
add_subdirectory(tests)
20 changes: 0 additions & 20 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@
"WAKAAMA_MODE_SERVER": {
"type": "BOOL",
"value": "ON"
},
"WAKAAMA_ENABLE_EXAMPLES": {
"type": "BOOL",
"value": "ON"
}
}
},
Expand All @@ -41,10 +37,6 @@
"WAKAAMA_MODE_BOOTSTRAP_SERVER": {
"type": "BOOL",
"value": "ON"
},
"WAKAAMA_ENABLE_EXAMPLES": {
"type": "BOOL",
"value": "ON"
}
}
},
Expand All @@ -61,10 +53,6 @@
"type": "BOOL",
"value": "ON"
},
"WAKAAMA_ENABLE_EXAMPLES": {
"type": "BOOL",
"value": "ON"
},
"WAKAAMA_DATA_SENML_JSON": {
"type": "BOOL",
"value": "ON"
Expand Down Expand Up @@ -100,10 +88,6 @@
"hidden": true,
"inherits": "base",
"cacheVariables": {
"WAKAAMA_ENABLE_EXAMPLES": {
"type": "BOOL",
"value": "OFF"
},
"WAKAAMA_DATA_TLV": {
"type": "BOOL",
"value": "ON"
Expand All @@ -123,10 +107,6 @@
"WAKAAMA_LOG_CUSTOM_HANDLER": {
"type": "BOOL",
"value": "ON"
},
"WAKAAMA_ENABLE_EXAMPLES": {
"type": "BOOL",
"value": "OFF"
}
}
},
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 0 additions & 4 deletions examples/CMakeLists.txt

This file was deleted.

0 comments on commit c76a0b2

Please sign in to comment.