CMakeLists.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. if(IDF_TARGET STREQUAL "esp32" OR IDF_TARGET STREQUAL "esp32s2" OR IDF_TARGET STREQUAL "esp32s3")
  2. set(COMPONENT_SRCS
  3. driver/esp_camera.c
  4. driver/cam_hal.c
  5. driver/sccb.c
  6. driver/sensor.c
  7. sensors/ov2640.c
  8. sensors/ov3660.c
  9. sensors/ov5640.c
  10. sensors/ov7725.c
  11. sensors/ov7670.c
  12. sensors/nt99141.c
  13. sensors/gc0308.c
  14. sensors/gc2145.c
  15. sensors/gc032a.c
  16. conversions/yuv.c
  17. conversions/to_jpg.cpp
  18. conversions/to_bmp.c
  19. conversions/jpge.cpp
  20. conversions/esp_jpg_decode.c
  21. )
  22. set(COMPONENT_ADD_INCLUDEDIRS
  23. driver/include
  24. conversions/include
  25. )
  26. set(COMPONENT_PRIV_INCLUDEDIRS
  27. driver/private_include
  28. sensors/private_include
  29. conversions/private_include
  30. target/private_include
  31. )
  32. if(IDF_TARGET STREQUAL "esp32")
  33. list(APPEND COMPONENT_SRCS
  34. target/xclk.c
  35. target/esp32/ll_cam.c
  36. )
  37. endif()
  38. if(IDF_TARGET STREQUAL "esp32s2")
  39. list(APPEND COMPONENT_SRCS
  40. target/xclk.c
  41. target/esp32s2/ll_cam.c
  42. target/esp32s2/tjpgd.c
  43. )
  44. list(APPEND COMPONENT_PRIV_INCLUDEDIRS
  45. target/esp32s2/private_include
  46. )
  47. endif()
  48. if(IDF_TARGET STREQUAL "esp32s3")
  49. list(APPEND COMPONENT_SRCS
  50. target/esp32s3/ll_cam.c
  51. )
  52. endif()
  53. set(COMPONENT_REQUIRES driver)
  54. set(COMPONENT_PRIV_REQUIRES freertos nvs_flash)
  55. register_component()
  56. endif()