CMakeLists.txt 1.2 KB

1234567891011121314151617181920212223242526272829
  1. cmake_minimum_required(VERSION 3.5)
  2. set(EXTRA_COMPONENT_DIRS components/platform_console/app_recovery components/platform_console/app_squeezelite )
  3. include($ENV{IDF_PATH}/tools/cmake/project.cmake)
  4. add_definitions(-DMODEL_NAME=SqueezeESP32)
  5. # State machine hierarchy enabled and logging enabled
  6. add_definitions(-DSTATE_MACHINE_LOGGER=1)
  7. add_definitions(-DHIERARCHICAL_STATES=1)
  8. # Uncomment line below to get memory usage trace details
  9. #add_definitions(-DENABLE_MEMTRACE=1)
  10. #uncomment line below to get network ethernet debug logs
  11. #add_definitions(-DNETWORK_ETHERNET_LOG_LEVEL=ESP_LOG_DEBUG)
  12. #uncomment line below to get network status debug logs
  13. #add_definitions(-DNETWORK_STATUS_LOG_LEVEL=ESP_LOG_DEBUG)
  14. #add_definitions(-DNETWORK_HANDLERS_LOG_LEVEL=ESP_LOG_DEBUG)
  15. #add_definitions(-DNETWORK_WIFI_LOG_LEVEL=ESP_LOG_DEBUG)
  16. #add_definitions(-DNETWORK_MANAGER_LOG_LEVEL=ESP_LOG_DEBUG)
  17. #add_definitions(-DNETWORK_HTTP_SERVER_LOG_LEVEL=ESP_LOG_DEBUG)
  18. if(NOT DEFINED DEPTH)
  19. set(DEPTH "16")
  20. endif()
  21. message(STATUS "Building RECOVERY")
  22. project(recovery)
  23. set_property(TARGET recovery.elf PROPERTY RECOVERY_PREFIX app_recovery )
  24. include(squeezelite.cmake)
  25. set(PROJECT_VER $ENV{PROJECT_VER})