Преглед на файлове

tools: use new component registration api for unit test app

Renz Christian Bagaporo преди 6 години
родител
ревизия
e9bc46db71
променени са 2 файла, в които са добавени 7 реда и са изтрити 12 реда
  1. 5 8
      tools/unit-test-app/components/test_utils/CMakeLists.txt
  2. 2 4
      tools/unit-test-app/main/CMakeLists.txt

+ 5 - 8
tools/unit-test-app/components/test_utils/CMakeLists.txt

@@ -1,9 +1,6 @@
-set(COMPONENT_SRCS "ref_clock.c"
-                   "test_runner.c"
-                   "test_utils.c")
-set(COMPONENT_ADD_INCLUDEDIRS include)
-
-set(COMPONENT_REQUIRES spi_flash idf_test unity)
-
-register_component()
+idf_component_register(SRCS "ref_clock.c"
+                            "test_runner.c"
+                            "test_utils.c"
+                    INCLUDE_DIRS include
+                    REQUIRES spi_flash idf_test unity)
 

+ 2 - 4
tools/unit-test-app/main/CMakeLists.txt

@@ -1,4 +1,2 @@
-set(COMPONENT_SRCS "app_main.c")
-set(COMPONENT_ADD_INCLUDEDIRS "")
-
-register_component()
+idf_component_register(SRCS "app_main.c"
+                    INCLUDE_DIRS "")