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 11# The following four lines of boilerplate have to be in your project's CMakeLists
22# in this exact order for cmake to work correctly
33cmake_minimum_required (VERSION 3.16)
4- set (EXTRA_COMPONENT_DIRS $ENV{IDF_PATH} /tools/unit-test -app/components)
54
65include ($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+
715project (test_app)
Original file line number Diff line number Diff line change 11# This is the project CMakeLists.txt file for the test subproject
22cmake_minimum_required (VERSION 3.16)
33
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+
412set (EXTRA_COMPONENT_DIRS ../../esp_websocket_client
5- " $ENV{IDF_PATH} /tools/unit-test-app/components" )
13+ ${test_component_dir} )
614
7- include ($ENV{IDF_PATH} /tools/cmake/project.cmake)
815project (websocket_unit_test)
Original file line number Diff line number Diff line change 11# This is the project CMakeLists.txt file for the test subproject
22cmake_minimum_required (VERSION 3.16)
33
4- set (EXTRA_COMPONENT_DIRS ../.. "$ENV{IDF_PATH} /tools/unit-test-app/components" )
5-
64include ($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+
715project (mdns_test)
You can’t perform that action at this time.
0 commit comments