mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
cmake: split extra library from library group
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -171,7 +171,7 @@ define_property(
|
||||
function(nuttx_add_library target)
|
||||
add_library(${target} ${ARGN})
|
||||
|
||||
set_property(GLOBAL APPEND PROPERTY NUTTX_EXTRA_LIBRARIES ${target})
|
||||
set_property(GLOBAL APPEND PROPERTY NUTTX_SYSTEM_LIBRARIES ${target})
|
||||
|
||||
get_target_property(target_type ${target} TYPE)
|
||||
if(${target_type} STREQUAL "STATIC_LIBRARY")
|
||||
@@ -181,6 +181,18 @@ function(nuttx_add_library target)
|
||||
nuttx_add_library_internal(${target})
|
||||
endfunction()
|
||||
|
||||
# =============================================================================
|
||||
#
|
||||
# nuttx_add_extra_library
|
||||
#
|
||||
# Add extra library to extra attribute
|
||||
#
|
||||
function(nuttx_add_extra_library)
|
||||
foreach(target ${ARGN})
|
||||
set_property(GLOBAL APPEND PROPERTY NUTTX_EXTRA_LIBRARIES ${target})
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
||||
# Import static library
|
||||
#
|
||||
function(nuttx_library_import library_name library_path)
|
||||
|
||||
Reference in New Issue
Block a user