CMakeLists.txt 652 B

1234567891011121314151617181920212223
  1. set(srcs main.c
  2. binaries.c
  3. ../../common/example_common.c
  4. )
  5. set(include_dirs . ../../common)
  6. if ("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER "4.0")
  7. idf_component_register(SRCS ${srcs}
  8. INCLUDE_DIRS ${include_dirs})
  9. else()
  10. # remove when dropping IDF 3.3 support
  11. set(COMPONENT_SRCS ${srcs})
  12. set(COMPONENT_ADD_INCLUDEDIRS ${include_dirs})
  13. register_component()
  14. endif()
  15. set_property(SOURCE binaries.c PROPERTY GENERATED 1)
  16. include(${CMAKE_CURRENT_LIST_DIR}/../../common/bin2array.cmake)
  17. create_resources(${CMAKE_CURRENT_LIST_DIR}/../../binaries/Hello-world binaries.c)