cmake:new feature on enhance apps header cmake module

`nuttx_export_header` for applications global header file export
`nuttx_add_dependencies` is the wrapper to use import

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19
2023-08-14 20:22:05 +08:00
committed by Xiang Xiao
parent 4b2ae15069
commit 10f32910a9
3 changed files with 199 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ endif()
# Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake 3.24:
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
cmake_policy(SET CMP0135 NEW)
endif()
@@ -373,6 +373,8 @@ include(nuttx_add_application)
include(nuttx_add_romfs)
include(nuttx_add_symtab)
include(nuttx_add_module)
include(nuttx_add_dependencies)
include(nuttx_export_header)
include(menuconfig)
include(ExternalProject)