CMakeLists.txt 756 B

1234567891011121314151617181920212223242526272829303132333435
  1. set(ZEPHYR_CURRENT_LIBRARY aem_gui)
  2. add_library(aem_gui INTERFACE)
  3. zephyr_include_directories(
  4. .
  5. include
  6. config
  7. )
  8. target_include_directories(aem_gui INTERFACE
  9. include
  10. )
  11. zephyr_library()
  12. target_compile_options(aem_gui INTERFACE -Wno-unused-function -Wno-unused-variable)
  13. if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/gui_fwk/CMakeLists.txt)
  14. add_subdirectory(gui_fwk)
  15. elseif(CONFIG_AEM_WATCH_FULL_BG_SUPPORT)
  16. zephyr_library_import(gui_fwk ${CMAKE_CURRENT_LIST_DIR}/libgui_fwk.a)
  17. else()
  18. zephyr_library_import(gui_fwk ${CMAKE_CURRENT_LIST_DIR}/libgui_fwk_s4.a)
  19. endif()
  20. add_subdirectory(adapter)
  21. add_subdirectory(driver)
  22. add_subdirectory(include)
  23. zephyr_library_link_libraries(aem_gui)
  24. target_link_libraries(aem_gui INTERFACE zephyr_interface)