diff --git a/targets/CMakeLists.txt b/targets/CMakeLists.txt index abbd598c61df..ab212c639e3a 100644 --- a/targets/CMakeLists.txt +++ b/targets/CMakeLists.txt @@ -9,4 +9,6 @@ elseif("NORDIC" IN_LIST MBED_TARGET_LABELS) add_subdirectory(TARGET_NORDIC) elseif("STM" IN_LIST MBED_TARGET_LABELS) add_subdirectory(TARGET_STM) +elseif("WICED" IN_LIST MBED_TARGET_LABELS) + add_subdirectory(TARGET_WICED) endif() diff --git a/targets/TARGET_WICED/CMakeLists.txt b/targets/TARGET_WICED/CMakeLists.txt new file mode 100644 index 000000000000..ac1832a9ada3 --- /dev/null +++ b/targets/TARGET_WICED/CMakeLists.txt @@ -0,0 +1,22 @@ +# Copyright (c) 2020 ARM Limited. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +if("WIO_EMW3166" IN_LIST MBED_TARGET_LABELS) + if(${MBED_TOOLCHAIN} STREQUAL "ARM") + set(LIB_WICED_DRIVERS TOOLCHAIN_ARMC6/TARGET_WIO_EMW3166/libwiced_drivers.ar) + elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM") + set(LIB_WICED_DRIVERS TOOLCHAIN_GCC_ARM/TARGET_WIO_EMW3166/libwiced_drivers.a) + endif() +endif() + +target_link_libraries(mbed-core INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/${LIB_WICED_DRIVERS}) + +target_include_directories(mbed-core + INTERFACE + wiced_interface +) + +target_sources(mbed-core + INTERFACE + wiced_interface/default_wifi_interface.cpp +) diff --git a/tools/cmake/README.md b/tools/cmake/README.md index aa49fb21e726..6aa13e3f4d39 100644 --- a/tools/cmake/README.md +++ b/tools/cmake/README.md @@ -23,8 +23,8 @@ The following targets are supported: - K64F - K66F - NRF52840_DK -- WIO_3G - ARM FM targets +- WICED ### Supported toolchains