CMakeLists.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. sensors/bf3005.c
  17. conversions/yuv.c
  18. conversions/to_jpg.cpp
  19. conversions/to_bmp.c
  20. conversions/jpge.cpp
  21. conversions/esp_jpg_decode.c
  22. )
  23. set(COMPONENT_ADD_INCLUDEDIRS
  24. driver/include
  25. conversions/include
  26. )
  27. set(COMPONENT_PRIV_INCLUDEDIRS
  28. driver/private_include
  29. sensors/private_include
  30. conversions/private_include
  31. target/private_include
  32. )
  33. if(IDF_TARGET STREQUAL "esp32")
  34. list(APPEND COMPONENT_SRCS
  35. target/xclk.c
  36. target/esp32/ll_cam.c
  37. )
  38. endif()
  39. if(IDF_TARGET STREQUAL "esp32s2")
  40. list(APPEND COMPONENT_SRCS
  41. target/xclk.c
  42. target/esp32s2/ll_cam.c
  43. target/esp32s2/tjpgd.c
  44. )
  45. list(APPEND COMPONENT_PRIV_INCLUDEDIRS
  46. target/esp32s2/private_include
  47. )
  48. endif()
  49. if(IDF_TARGET STREQUAL "esp32s3")
  50. list(APPEND COMPONENT_SRCS
  51. target/esp32s3/ll_cam.c
  52. )
  53. endif()
  54. set(COMPONENT_REQUIRES driver)
  55. set(COMPONENT_PRIV_REQUIRES freertos nvs_flash)
  56. register_component()
  57. endif()