CMakeLists.txt 899 B

12345678910111213141516171819202122232425
  1. # Register the component
  2. idf_component_register(SRCS "ulp_riscv_touch_example_main.c"
  3. INCLUDE_DIRS ""
  4. REQUIRES ulp)
  5. #
  6. # ULP support additions to component CMakeLists.txt.
  7. #
  8. # 1. The ULP app name must be unique (if multiple components use ULP).
  9. set(ulp_app_name ulp_${COMPONENT_NAME})
  10. #
  11. # 2. Specify all C and Assembly source files.
  12. # Files should be placed into a separate directory (in this case, ulp/),
  13. # which should not be added to COMPONENT_SRCS.
  14. set(ulp_riscv_sources "ulp/main.c")
  15. #
  16. # 3. List all the component source files which include automatically
  17. # generated ULP export file, ${ulp_app_name}.h:
  18. set(ulp_exp_dep_srcs "ulp_riscv_touch_example_main.c")
  19. #
  20. # 4. Call function to build ULP binary and embed in project using the argument
  21. # values above.
  22. ulp_embed_binary(${ulp_app_name} "${ulp_riscv_sources}" "${ulp_exp_dep_srcs}")