File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11idf_component_register (SRCS "iot_servo.c"
22 INCLUDE_DIRS include
3- REQUIRES driver )
3+ REQUIRES driver esp_driver_ledc esp_driver_gpio )
Original file line number Diff line number Diff line change 22# in this exact order for cmake to work correctly
33cmake_minimum_required (VERSION 3.5 )
44
5- set (EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH} /tools/unit-test-app/components"
6- "../../servo" )
5+ if (EXISTS "$ENV{IDF_PATH} /tools/unit-test-app/components" )
6+ set (EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH} /tools/unit-test-app/components" )
7+ elseif (EXISTS "$ENV{IDF_PATH} /tools/test_apps/components" )
8+ set (EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH} /tools/test_apps/components" )
9+ else ()
10+ message (FATAL_ERROR "Could not find unit-test-app or test_apps components" )
11+ endif ()
712
813include ($ENV{IDF_PATH} /tools/cmake/project.cmake )
914project (servo_test)
Original file line number Diff line number Diff line change 1+ dependencies :
2+ idf :
3+ version : " >=4.4"
4+ servo :
5+ override_path : " ../.."
You can’t perform that action at this time.
0 commit comments