CMakeLists.txt 797 B

123456789101112131415161718
  1. if(IDF_TARGET STREQUAL "esp32")
  2. idf_component_register(SRC_DIRS .
  3. PRIV_INCLUDE_DIRS . ${CMAKE_CURRENT_BINARY_DIR}
  4. PRIV_REQUIRES unity test_utils nvs_flash ulp esp_common
  5. )
  6. add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/test_tjpgd_logo.h"
  7. COMMAND xxd -i "logo.jpg" "${CMAKE_CURRENT_BINARY_DIR}/test_tjpgd_logo.h"
  8. WORKING_DIRECTORY ${COMPONENT_DIR}
  9. DEPENDS "${CMAKE_CURRENT_LIST_DIR}/logo.jpg")
  10. add_custom_target(esp32_test_logo DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/test_tjpgd_logo.h")
  11. add_dependencies(${COMPONENT_LIB} esp32_test_logo)
  12. target_link_libraries(${COMPONENT_LIB} INTERFACE "-u ld_include_test_dport_xt_highint5")
  13. endif()