libgnssmgt.cmake 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. # All rights reserved.
  3. #
  4. # This software is supplied "AS IS" without any warranties.
  5. # RDA assumes no responsibility or liability for the use of the software,
  6. # conveys no license or title under any patent, copyright, or mask work
  7. # right to the product. RDA reserves the right to make changes in the
  8. # software without notification. RDA also make no representation or
  9. # warranty that such application will be suitable for the specified use
  10. # without further testing or modification.
  11. if (CONFIG_SUPPORT_GNSS)
  12. set(target gnss)
  13. set(import_lib ${out_lib_dir}/libgnss.a)
  14. configure_file(${CONFIG_SOC}/libgnss.a ${import_lib} COPYONLY)
  15. add_app_libraries(${import_lib})
  16. add_library(${target} STATIC IMPORTED GLOBAL)
  17. set_target_properties(${target} PROPERTIES
  18. IMPORTED_LOCATION ${import_lib}
  19. INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/include
  20. )
  21. set(target qxsupl)
  22. set(import_lib ${out_lib_dir}/qxsupl.a)
  23. configure_file(${CONFIG_SOC}/qxsupl.a ${import_lib} COPYONLY)
  24. add_app_libraries(${import_lib})
  25. add_library(${target} STATIC IMPORTED GLOBAL)
  26. set_target_properties(${target} PROPERTIES
  27. IMPORTED_LOCATION ${import_lib}
  28. INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/Third-Party/inc ${CMAKE_CURRENT_SOURCE_DIR}/Third-Party/hal/include ${CMAKE_CURRENT_SOURCE_DIR}/Third-Party/demo/include
  29. )
  30. endif()