CMakeLists.txt 526 B

123456789101112131415161718192021
  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. set(LUATOS_ROOT "E://code/codeup/LuatOS/")
  5. set(EXTRA_COMPONENT_DIRS
  6. ./components/luat
  7. )
  8. include($ENV{IDF_PATH}/tools/cmake/project.cmake)
  9. project(luatos)
  10. idf_build_get_property(config_json SDKCONFIG_JSON)
  11. add_custom_command(
  12. TARGET app
  13. POST_BUILD
  14. COMMAND ${python} "${CMAKE_CURRENT_LIST_DIR}/makesoc.py" "${config_json}"
  15. )