diff --git a/test_apps/physical_tests/CMakeLists.txt b/test_apps/physical_tests/CMakeLists.txt index 63d6b4d..8170ace 100644 --- a/test_apps/physical_tests/CMakeLists.txt +++ b/test_apps/physical_tests/CMakeLists.txt @@ -5,9 +5,6 @@ include($ENV{IDF_PATH}/tools/cmake/project.cmake) set(EXTRA_COMPONENT_DIRS "../test_common") -# Include console command helper component -list(APPEND EXTRA_COMPONENT_DIRS "../../components/mb_console_helper") - # The workaround for the test_utils under ESP-IDF v6.0 if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER "5.5") list(APPEND EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/test_apps/components") diff --git a/test_apps/test_common/CMakeLists.txt b/test_apps/test_common/CMakeLists.txt index 75debd6..aa5ae60 100644 --- a/test_apps/test_common/CMakeLists.txt +++ b/test_apps/test_common/CMakeLists.txt @@ -1,13 +1,9 @@ cmake_minimum_required(VERSION 3.22) + idf_component_register(SRCS "test_common.c" INCLUDE_DIRS "include" REQUIRES unity esp_timer mb_console_helper) -set(EXTRA_COMPONENT_DIRS) - -# Include console command helper component -list(APPEND EXTRA_COMPONENT_DIRS "../../components/mb_console_helper") - if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER "5.5") list(APPEND EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/test_apps/components") else() diff --git a/test_apps/test_common/idf_component.yml b/test_apps/test_common/idf_component.yml new file mode 100644 index 0000000..e478c27 --- /dev/null +++ b/test_apps/test_common/idf_component.yml @@ -0,0 +1,5 @@ +dependencies: + idf: + version: ">=5.0" + mb_console_helper: + path: "../../components/mb_console_helper"