CMakeLists.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. # Copyright (C) 2020 QUECTEL Technologies Limited and/or its affiliates("QUECTEL").
  2. # All rights reserved.
  3. #
  4. if (CONFIG_QUEC_PROJECT_FEATURE_INTERNAL_GNSS)
  5. set(target ql_app_gnss)
  6. add_library(${target} STATIC)
  7. set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_app_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 ql_api_common ql_api_drivers)
  11. target_sources(${target} PRIVATE
  12. gnss_demo.c
  13. )
  14. relative_glob(srcs include/*.h src/*.c inc/*.h)
  15. beautify_c_code(${target} ${srcs})
  16. endif()
  17. if (CONFIG_QUEC_PROJECT_FEATURE_HD_GNSS)
  18. set(target ql_app_hd_gnss)
  19. add_library(${target} STATIC)
  20. set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_app_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 kernel driver ql_api_common ql_api_drivers)
  24. target_sources(${target} PRIVATE
  25. hd_gnss_demo.c
  26. )
  27. relative_glob(srcs include/*.h src/*.c inc/*.h)
  28. beautify_c_code(${target} ${srcs})
  29. endif()