core.cmake 1.4 KB

123456789101112131415161718192021222324252627282930
  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. set(import_lib ${out_lib_dir}/libatr.a)
  12. configure_file(${ql_dm_dir}/libatr.a ${import_lib} COPYONLY)
  13. add_app_libraries(${import_lib})
  14. add_library(atr STATIC IMPORTED GLOBAL)
  15. set_target_properties(atr PROPERTIES IMPORTED_LOCATION ${import_lib} INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/include)
  16. if(NOT CONFIG_QUEC_PROJECT_FEATURE_ATC_PARSE)
  17. set(import_lib ${out_lib_dir}/libatr_core1.a)
  18. configure_file(core/${CONFIG_SOC}/libatr_core1.a ${import_lib} COPYONLY)
  19. add_app_libraries(${import_lib})
  20. add_library(atr_core1 STATIC IMPORTED GLOBAL)
  21. set_target_properties(atr_core1 PROPERTIES IMPORTED_LOCATION ${import_lib})
  22. set(import_lib ${out_lib_dir}/libatr_core2.a)
  23. configure_file(core/${CONFIG_SOC}/libatr_core2.a ${import_lib} COPYONLY)
  24. add_app_libraries(${import_lib})
  25. add_library(atr_core2 STATIC IMPORTED GLOBAL)
  26. set_target_properties(atr_core2 PROPERTIES IMPORTED_LOCATION ${import_lib})
  27. endif()