CMakeLists.txt 801 B

1234567891011121314151617181920212223242526
  1. # Copyright (C) 2020 QUECTEL Technologies Limited and/or its affiliates("QUECTEL").
  2. # All rights reserved.
  3. #
  4. if (QL_APP_PACK_FILE)
  5. if (QL_CCSDK_BUILD)
  6. set(CONFIG_PACKAGE_FILE_APPIMG_JSON_PATH ${QL_APP_PACK_FILE_JSON_PATH})
  7. else()
  8. set(CONFIG_PACKAGE_FILE_APPIMG_JSON_PATH $ENV{prepack_json_path})
  9. endif()
  10. endif()
  11. set(target ${QL_APP_BUILD_VER})
  12. if(CONFIG_APPIMG_LOAD_FLASH)
  13. add_appimg_flash_ql_example(${target} vsim_img_init.c)
  14. endif()
  15. if(CONFIG_APPIMG_LOAD_FILE)
  16. add_appimg_file_ql_example(${target} vsim_img_init.c)
  17. endif()
  18. target_link_libraries(${target} PRIVATE ${libc_file_name} ${libm_file_name} ${libgcc_file_name})
  19. target_include_directories(${target} PUBLIC inc)
  20. target_include_targets(${target} PRIVATE kernel driver atr)
  21. relative_glob(srcs *.h *.c)
  22. beautify_c_code(${target} ${srcs})