CMakeLists.txt 1.0 KB

1234567891011121314151617181920
  1. idf_build_get_property(idf_path IDF_PATH)
  2. idf_component_register( SRCS cmd_squeezelite.c
  3. INCLUDE_DIRS .
  4. PRIV_REQUIRES spi_flash bootloader_support partition_table bootloader_support console codecs squeezelite newlib pthread tools platform_config display )
  5. target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=feof")
  6. target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=log")
  7. target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=fdopen")
  8. target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=fileno")
  9. target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=fstat")
  10. target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=lround")
  11. target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=esp_app_desc")
  12. idf_build_get_property(project_ver PROJECT_VER)
  13. message("******************* ${project_ver}")
  14. string(SUBSTRING "${project_ver}" 0 31 PROJECT_VER_CUT)
  15. set_source_files_properties(cmd_squeezelite.c PROPERTIES COMPILE_DEFINITIONS "PROJECT_VER=\"${PROJECT_VER_CUT}\" ")