CMakeLists.txt 517 B

1234567891011121314151617
  1. idf_build_get_property(target IDF_TARGET)
  2. if(${target} STREQUAL "linux")
  3. return() # This component is not supported by the POSIX/Linux simulator
  4. endif()
  5. set(TOUCH_ELEMENT_COMPATIBLE_TARGETS "esp32s2" "esp32s3")
  6. if(IDF_TARGET IN_LIST TOUCH_ELEMENT_COMPATIBLE_TARGETS)
  7. idf_component_register(SRCS "touch_element.c"
  8. "touch_button.c"
  9. "touch_slider.c"
  10. "touch_matrix.c"
  11. INCLUDE_DIRS include
  12. REQUIRES driver
  13. PRIV_REQUIRES esp_timer)
  14. endif()