core.cmake 978 B

123456789101112131415161718192021
  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. configure_file(include/lpa_config.h.in ${out_inc_dir}/lpa_config.h)
  12. set(import_lib ${out_lib_dir}/liblpa_core.a)
  13. configure_file(core/${CONFIG_SOC}/liblpa_core.a ${import_lib} COPYONLY)
  14. add_app_libraries(${import_lib})
  15. add_library(${target} STATIC IMPORTED GLOBAL)
  16. set_target_properties(${target} PROPERTIES
  17. IMPORTED_LOCATION ${import_lib}
  18. INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/include
  19. )