CMakeLists.txt 752 B

1234567891011121314151617181920212223242526
  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_set_property(COMPILE_OPTIONS "-DLUAT_FREERTOS_FULL_INCLUDE=1" APPEND)
  14. idf_build_get_property(config_json SDKCONFIG_JSON)
  15. add_custom_command(
  16. TARGET app
  17. POST_BUILD
  18. COMMAND ${python} "${CMAKE_CURRENT_LIST_DIR}/makesoc.py" "${config_json}"
  19. )