CMakeLists.txt 672 B

12345678910111213141516171819202122232425
  1. # The following lines of boilerplate have to be in your project's CMakeLists
  2. # in this exact order for cmake to work correctly
  3. cmake_minimum_required(VERSION 3.16)
  4. # change it!!
  5. set(LUATOS_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../LuatOS/)
  6. set(EXTRA_COMPONENT_DIRS
  7. ./components/luat
  8. )
  9. include($ENV{IDF_PATH}/tools/cmake/project.cmake)
  10. idf_component_optional_requires(PRIVATE esp_psram)
  11. project(luatos)
  12. idf_build_set_property(COMPILE_OPTIONS "-D__LUATOS__=1" APPEND)
  13. idf_build_get_property(config_json SDKCONFIG_JSON)
  14. add_custom_command(
  15. TARGET app
  16. POST_BUILD
  17. COMMAND ${python} "${CMAKE_CURRENT_LIST_DIR}/makesoc.py" "${config_json}"
  18. )