File tree Expand file tree Collapse file tree 3 files changed +28
-5
lines changed
esp_websocket_client/test Expand file tree Collapse file tree 3 files changed +28
-5
lines changed Original file line number Diff line number Diff line change 1
1
# The following four lines of boilerplate have to be in your project's CMakeLists
2
2
# in this exact order for cmake to work correctly
3
3
cmake_minimum_required (VERSION 3.16 )
4
- set (EXTRA_COMPONENT_DIRS $ENV{IDF_PATH} /tools/unit-test-app/components )
5
4
6
5
include ($ENV{IDF_PATH} /tools/cmake/project.cmake )
6
+
7
+ if ("${IDF_VERSION_MAJOR} .${IDF_VERSION_MINOR} " VERSION_GREATER_EQUAL "6.0" )
8
+ set (test_component_dir $ENV{IDF_PATH} /tools/test_apps/components )
9
+ else ()
10
+ set (test_component_dir $ENV{IDF_PATH} /tools/unit-test-app/components )
11
+ endif ()
12
+
13
+ set (EXTRA_COMPONENT_DIRS ${test_component_dir} )
14
+
7
15
project (test_app )
Original file line number Diff line number Diff line change 1
1
# This is the project CMakeLists.txt file for the test subproject
2
2
cmake_minimum_required (VERSION 3.16 )
3
3
4
+ include ($ENV{IDF_PATH} /tools/cmake/project.cmake )
5
+
6
+ if ("${IDF_VERSION_MAJOR} .${IDF_VERSION_MINOR} " VERSION_GREATER_EQUAL "6.0" )
7
+ set (test_component_dir $ENV{IDF_PATH} /tools/test_apps/components )
8
+ else ()
9
+ set (test_component_dir $ENV{IDF_PATH} /tools/unit-test-app/components )
10
+ endif ()
11
+
4
12
set (EXTRA_COMPONENT_DIRS ../../esp_websocket_client
5
- " $ENV{IDF_PATH} /tools/unit-test-app/components" )
13
+ ${test_component_dir} )
6
14
7
- include ($ENV{IDF_PATH} /tools/cmake/project.cmake )
8
15
project (websocket_unit_test )
Original file line number Diff line number Diff line change 1
1
# This is the project CMakeLists.txt file for the test subproject
2
2
cmake_minimum_required (VERSION 3.16 )
3
3
4
- set (EXTRA_COMPONENT_DIRS ../.. "$ENV{IDF_PATH} /tools/unit-test-app/components" )
5
-
6
4
include ($ENV{IDF_PATH} /tools/cmake/project.cmake )
5
+
6
+ if ("${IDF_VERSION_MAJOR} .${IDF_VERSION_MINOR} " VERSION_GREATER_EQUAL "6.0" )
7
+ set (test_component_dir $ENV{IDF_PATH} /tools/test_apps/components )
8
+ else ()
9
+ set (test_component_dir $ENV{IDF_PATH} /tools/unit-test-app/components )
10
+ endif ()
11
+
12
+ set (EXTRA_COMPONENT_DIRS ../..
13
+ ${test_component_dir} )
14
+
7
15
project (mdns_test )
You can’t perform that action at this time.
0 commit comments