CMakeLists.txt 753 B

123456789101112131415
  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 )
  5. target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=feof")
  6. target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=fdopen")
  7. target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--undefined=esp_app_desc")
  8. idf_build_get_property(project_ver PROJECT_VER)
  9. string(SUBSTRING "${project_ver}" 0 31 PROJECT_VER_CUT)
  10. set_source_files_properties(cmd_squeezelite.c PROPERTIES COMPILE_DEFINITIONS "PROJECT_VER=\"${PROJECT_VER_CUT}\"; PROJECT_NAME=\"squeezelite\"")