CMakeLists.txt 796 B

12345678910111213141516171819202122232425
  1. # Copyright (C) 2020 QUECTEL Technologies Limited and/or its affiliates("QUECTEL").
  2. # All rights reserved.
  3. #
  4. set(target ql_app_peripheral)
  5. add_library(${target} STATIC)
  6. set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_app_lib_dir})
  7. target_compile_definitions(${target} PRIVATE OSI_LOG_TAG=LOG_TAG_QUEC)
  8. target_include_directories(${target} PUBLIC inc)
  9. #target_link_libraries(${target} PRIVATE ql_api_common)
  10. target_sources(${target} PRIVATE
  11. gpio_demo.c
  12. gpio_int_demo.c
  13. adc_demo.c
  14. led_cfg_demo.c
  15. uart_demo.c
  16. uart_rb_demo.c
  17. )
  18. target_sources_if(QL_APP_FEATURE_KEYPAD THEN ${target} PRIVATE keypad_demo.c)
  19. target_sources_if(QL_APP_FEATURE_RS485 THEN ${target} PRIVATE rs485_demo.c)
  20. relative_glob(srcs include/*.h src/*.c inc/*.h)
  21. beautify_c_code(${target} ${srcs})