Skip to content

Commit c76a0b2

Browse files
committed
cmake: Remove option for examples
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.
1 parent 00fb991 commit c76a0b2

File tree

4 files changed

+0
-29
lines changed

4 files changed

+0
-29
lines changed

CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ project(wakaama C)
44

55
include(wakaama.cmake)
66

7-
add_subdirectory(examples)
8-
97
# Enable "test" target
108
enable_testing()
119
add_subdirectory(tests)

CMakePresets.json

-20
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
"WAKAAMA_MODE_SERVER": {
2727
"type": "BOOL",
2828
"value": "ON"
29-
},
30-
"WAKAAMA_ENABLE_EXAMPLES": {
31-
"type": "BOOL",
32-
"value": "ON"
3329
}
3430
}
3531
},
@@ -41,10 +37,6 @@
4137
"WAKAAMA_MODE_BOOTSTRAP_SERVER": {
4238
"type": "BOOL",
4339
"value": "ON"
44-
},
45-
"WAKAAMA_ENABLE_EXAMPLES": {
46-
"type": "BOOL",
47-
"value": "ON"
4840
}
4941
}
5042
},
@@ -61,10 +53,6 @@
6153
"type": "BOOL",
6254
"value": "ON"
6355
},
64-
"WAKAAMA_ENABLE_EXAMPLES": {
65-
"type": "BOOL",
66-
"value": "ON"
67-
},
6856
"WAKAAMA_DATA_SENML_JSON": {
6957
"type": "BOOL",
7058
"value": "ON"
@@ -100,10 +88,6 @@
10088
"hidden": true,
10189
"inherits": "base",
10290
"cacheVariables": {
103-
"WAKAAMA_ENABLE_EXAMPLES": {
104-
"type": "BOOL",
105-
"value": "OFF"
106-
},
10791
"WAKAAMA_DATA_TLV": {
10892
"type": "BOOL",
10993
"value": "ON"
@@ -123,10 +107,6 @@
123107
"WAKAAMA_LOG_CUSTOM_HANDLER": {
124108
"type": "BOOL",
125109
"value": "ON"
126-
},
127-
"WAKAAMA_ENABLE_EXAMPLES": {
128-
"type": "BOOL",
129-
"value": "OFF"
130110
}
131111
}
132112
},

README.md

-3
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ pytest -v tests/integration
170170

171171
## Examples
172172

173-
The examples can be enabled (or disabled) with the CMake cache variable `WAKAAMA_ENABLE_EXAMPLES` (e.g.
174-
`cmake -DWAKAAMA_ENABLE_EXAMPLES=OFF`).
175-
176173
There are some example applications provided to test the server, client and bootstrap capabilities of Wakaama.
177174
The following recipes assume you are on a unix like platform and you have cmake and make installed.
178175

examples/CMakeLists.txt

-4
This file was deleted.

0 commit comments

Comments
 (0)