CMakeLists.txt 533 B

123456789101112131415
  1. set(PRIVREQ esp_timer)
  2. if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.0")
  3. list(APPEND REQ esp_adc)
  4. else()
  5. list(APPEND REQ esp_adc_cal)
  6. endif()
  7. idf_component_register(SRCS "button_adc.c" "button_gpio.c" "iot_button.c" "button_matrix.c" "user_button.c"
  8. INCLUDE_DIRS include
  9. REQUIRES driver ${REQ} USER_SPIFFS
  10. PRIV_REQUIRES ${PRIVREQ})
  11. #include(package_manager)
  12. #cu_pkg_define_version(${CMAKE_CURRENT_LIST_DIR})