CMakeLists.txt 1.1 KB

12345678910111213141516171819202122232425
  1. set(ZEPHYR_CURRENT_LIBRARY aic_srv_portable)
  2. set(AIC_SRV_BASE ${CMAKE_CURRENT_LIST_DIR})
  3. zephyr_include_directories(${AIC_SRV_BASE}/portable/include)
  4. zephyr_include_directories(${AIC_SRV_BASE}/portable/tmr)
  5. zephyr_include_directories(${AIC_SRV_BASE}/inc)
  6. zephyr_library_named(aic_srv_portable)
  7. FILE(GLOB src_list ${AIC_SRV_BASE}/portable/common/*.c)
  8. target_sources(aic_srv_portable PRIVATE ${src_list})
  9. FILE(GLOB src_list ${AIC_SRV_BASE}/portable/drivers/*.c)
  10. target_sources(aic_srv_portable PRIVATE ${src_list})
  11. FILE(GLOB src_list ${AIC_SRV_BASE}/portable/tmr/*.c)
  12. target_sources(aic_srv_portable PRIVATE ${src_list})
  13. FILE(GLOB src_list ${AIC_SRV_BASE}/portable/tele_cfg/*.c)
  14. target_sources(aic_srv_portable PRIVATE ${src_list})
  15. FILE(GLOB src_list ${AIC_SRV_BASE}/portable/log/*.c)
  16. target_sources(aic_srv_portable PRIVATE ${src_list})
  17. if (NOT EXISTS ${AIC_SRV_BASE}/portable/tools/sdk)
  18. add_definitions(-DCONFIG_TELE_SERVICE -DCONFIG_TELE_RADIO_SIM -DCONFIG_TELE_CALL -DCONFIG_TELE_DATA -DCONFIG_TELE_SMS -DCONFIG_TELE_SERVICE_TRANSACTION -DCONFIG_TELE_SAMPLE)
  19. target_link_libraries(aic_srv_portable PRIVATE ${AIC_SRV_BASE}/libs/libaic_srv.a)
  20. endif()