summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksims Svecovs <maksims.svecovs@arm.com>2022-09-28 14:29:40 +0100
committerMaksims Svecovs <maksims.svecovs@arm.com>2022-09-28 16:40:17 +0100
commit9d329f41b325e4c711c796e5b9bd9b3d8c08324d (patch)
treea98d382f41a54817e8c0c047fd234f81891f4076
parentdb7c5184b3559d2dc2776c793c75e62b01b617b5 (diff)
downloadml-embedded-evaluation-kit-9d329f41b325e4c711c796e5b9bd9b3d8c08324d.tar.gz
MLECO-3518: Move to CMake 3.23.3
For the purpose of using decoupled presets move required CMake version to 3.23.3 that supports "includes" option for presets. Updates the documentation. Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com> Change-Id: I259e8e3a4641294d8ccdee429c7284d8160b9e24
-rw-r--r--.gitignore1
-rw-r--r--docs/sections/building.md23
-rw-r--r--scripts/py/requirements.txt2
3 files changed, 15 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore
index 70914be..09a9d02 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,7 @@ resources_downloaded
# Build files
CMakeFiles
+CMakeUserPresets.json
build*/
cmake-build-*/
diff --git a/docs/sections/building.md b/docs/sections/building.md
index bd6ae43..16cfb56 100644
--- a/docs/sections/building.md
+++ b/docs/sections/building.md
@@ -268,7 +268,7 @@ The build parameters are:
- `TENSORFLOW_LITE_MICRO_CLEAN_DOWNLOADS`: Optional parameter to enable wiping out `TPIP` downloads from TensorFlow
source tree prior to each build. Disabled by default.
-- `USE_SINGLE_INPUT`: Sets whether each use case will use a single default input file, or if a user menu is
+- `USE_SINGLE_INPUT`: Sets whether each use case will use a single default input file, or if a user menu is
provided for the user to select which input file to use via a telnet window. Disabled by default.
For details on the specific use-case build options, follow the instructions in the use-case specific documentation.
@@ -559,25 +559,28 @@ cmake .. \
### Building with CMakePresets
-If you are using CMake version 3.21 or above, then an alternative method of building is by using CMakePresets.
-This can be done by calling the following command:
+If you are using CMake version 3.23.3 or above, then an alternative method of building is by using CMakePresets.
+CMakePresets are well supported by most IDEs and serve as a developer-convenience tool.
+Presets can be also used from a command-line:
```commandline
-cmake --preset <platform>
-cmake --build --preset <platform>
+cmake --preset <config-name>
+cmake --build --preset <config-name>
```
-where platform is one of:
+where config-name is one of:
```commandline
native
-mps3-gcc
-mps3-clang
+mps3-300-gcc
+mps3-300-clang
+mps3-310-gcc
+mps3-310-clang
simple-gcc
simple-clang
```
This will automatically configure and build the evaluation-kit into a corresponding folder.
You can still pass in build flags as usual, for example:
```commandline
-cmake --preset mps3-gcc -DUSE_CASE_BUILD=inference_runner
-cmake --build --preset mps3-gcc
+cmake --preset mps3-300-gcc -DUSE_CASE_BUILD=inference_runner
+cmake --build --preset mps3-300-gcc
```
Alternatively, you can create a CMakeUserPresets.json in the root of the project with personal user settings, for example:
```commandline
diff --git a/scripts/py/requirements.txt b/scripts/py/requirements.txt
index 3057913..a407a44 100644
--- a/scripts/py/requirements.txt
+++ b/scripts/py/requirements.txt
@@ -10,4 +10,4 @@ resampy==0.2.2
scipy==1.7.3
six==1.16.0
SoundFile==0.10.3.post1
-cmake==3.22.4
+cmake==3.23.3