Skip to content

Commit

Permalink
CMake: Add support for WICED target
Browse files Browse the repository at this point in the history
* Add CMakeLists.txt file
* Update the list of supported target
  • Loading branch information
hugueskamba committed Nov 26, 2020
1 parent b20278a commit 46342db
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 2 additions & 0 deletions targets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
22 changes: 22 additions & 0 deletions targets/TARGET_WICED/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
)
2 changes: 1 addition & 1 deletion tools/cmake/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ The following targets are supported:
- K64F
- K66F
- NRF52840_DK
- WIO_3G
- ARM FM targets
- WICED

### Supported toolchains

Expand Down

0 comments on commit 46342db

Please sign in to comment.