CMakeLists.txt 520 B

1234567891011121314151617181920
  1. # Copyright (c) 2020 Actions Semiconductor Co., Ltd
  2. #
  3. # SPDX-License-Identifier: Apache-2.0
  4. if(CONFIG_VG_LITE)
  5. zephyr_include_directories(
  6. ${CMAKE_CURRENT_SOURCE_DIR}/../include/vg_lite
  7. )
  8. zephyr_library_sources(vglite_mem.c vglite_util.c)
  9. if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/verisilicon/CMakeLists.txt)
  10. add_subdirectory(verisilicon)
  11. else()
  12. zephyr_library_include_directories(${CMAKE_CURRENT_LIST_DIR})
  13. zephyr_library_import(vg_lite ${CMAKE_CURRENT_LIST_DIR}/libvg_lite.a)
  14. endif()
  15. endif() # CONFIG_VG_LITE