CMakeLists.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. # Copyright (C) 2020 QUECTEL Technologies Limited and/or its affiliates("QUECTEL").
  2. # All rights reserved.
  3. #
  4. set(target oql_core_virt_func)
  5. add_app_libraries($<TARGET_FILE:${target}>)
  6. add_library(${target} STATIC)
  7. set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_lib_dir})
  8. target_compile_definitions(${target} PRIVATE OSI_LOG_TAG=LOG_TAG_QUEC)
  9. target_include_directories(${target} PUBLIC inc)
  10. target_link_libraries(${target} PRIVATE kernel driver service atr ats audio)
  11. target_sources(${target} PRIVATE
  12. quec_virt_func_bsp.c
  13. quec_virt_func_modem.c
  14. quec_virt_func_proto_stack.c
  15. quec_virt_func_bt.c
  16. )
  17. set(target oql_core_boot_virt_func)
  18. add_app_libraries($<TARGET_FILE:${target}>)
  19. add_library(${target} STATIC)
  20. set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_lib_dir})
  21. target_compile_definitions(${target} PRIVATE OSI_LOG_TAG=LOG_TAG_QUEC)
  22. target_include_directories(${target} PUBLIC inc)
  23. target_link_libraries(${target} PRIVATE driver)
  24. target_sources(${target} PRIVATE
  25. quec_boot_virt_func_bsp.c
  26. )
  27. relative_glob(srcs include/*.h src/*.c inc/*.h)
  28. beautify_c_code(${target} ${srcs})