mirror of https://github.com/ARMmbed/mbed-os.git
CMake: set CMAKE_MODULE_PATH in the Mbed OS CMakelists.txt
Update CMAKE_MODULE_PATH at once place. Note, we update also CMAKE_MODULE_PATH in app.cmake. This is temporary until we get a proper way to include Mbed Os (removing app.cmake need to be included by an application).pull/14516/head
parent
65e246fe4d
commit
121c8286da
|
@ -10,6 +10,11 @@ include(mbed_set_linker_script)
|
||||||
|
|
||||||
project(mbed-os)
|
project(mbed-os)
|
||||||
|
|
||||||
|
# Add all paths to the list files within Mbed OS
|
||||||
|
list(APPEND CMAKE_MODULE_PATH
|
||||||
|
"${mbed-os_SOURCE_DIR}/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST/scripts;${mbed-os_SOURCE_DIR}/targets/TARGET_Cypress/scripts;${mbed-os_SOURCE_DIR}/targets/TARGET_NXP/scripts"
|
||||||
|
)
|
||||||
|
|
||||||
add_library(mbed-core INTERFACE)
|
add_library(mbed-core INTERFACE)
|
||||||
|
|
||||||
add_library(mbed-os INTERFACE)
|
add_library(mbed-os INTERFACE)
|
||||||
|
|
|
@ -40,4 +40,3 @@ target_sources(mbed-psa
|
||||||
src/tfm_ps_ipc_api.c
|
src/tfm_ps_ipc_api.c
|
||||||
)
|
)
|
||||||
|
|
||||||
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/scripts")
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
|
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/scripts")
|
|
||||||
|
|
||||||
add_subdirectory(TARGET_PSOC6 EXCLUDE_FROM_ALL)
|
add_subdirectory(TARGET_PSOC6 EXCLUDE_FROM_ALL)
|
||||||
|
|
||||||
add_library(mbed-cy-external-wifi-fw INTERFACE)
|
add_library(mbed-cy-external-wifi-fw INTERFACE)
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
|
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/scripts")
|
|
||||||
|
|
||||||
add_subdirectory(TARGET_LPC11XX_11CXX EXCLUDE_FROM_ALL)
|
add_subdirectory(TARGET_LPC11XX_11CXX EXCLUDE_FROM_ALL)
|
||||||
add_subdirectory(TARGET_LPC176X EXCLUDE_FROM_ALL)
|
add_subdirectory(TARGET_LPC176X EXCLUDE_FROM_ALL)
|
||||||
add_subdirectory(TARGET_MCUXpresso_MCUS EXCLUDE_FROM_ALL)
|
add_subdirectory(TARGET_MCUXpresso_MCUS EXCLUDE_FROM_ALL)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
# Add our CMake list files to CMake default module path
|
# Add our CMake list files to CMake default module path
|
||||||
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_LIST_DIR}")
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
|
||||||
|
|
||||||
find_program(CCACHE "ccache")
|
find_program(CCACHE "ccache")
|
||||||
if(CCACHE)
|
if(CCACHE)
|
||||||
|
|
Loading…
Reference in New Issue