整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
29
hardware/CMakeLists.txt
Normal file
29
hardware/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
set(TARGET hardware)
|
||||
|
||||
aux_source_directory(. HARDWARE_SRCS)
|
||||
aux_source_directory(user USER_SOURCES)
|
||||
|
||||
|
||||
if (USING_HISIMPP5)
|
||||
aux_source_directory(hisilicon HISI_SOURCES)
|
||||
list(APPEND HARDWARE_SRCS ${HISI_SOURCES})
|
||||
include_directories($ENV{MPP_PATH}/include)
|
||||
endif()
|
||||
|
||||
if (USING_ITE_DEVICE)
|
||||
message("Using ITE device ...")
|
||||
aux_source_directory(ite ITE_SOURCES)
|
||||
list(APPEND HARDWARE_SRCS ${ITE_SOURCES})
|
||||
endif()
|
||||
|
||||
if (USING_SEMTECH_DEVICE)
|
||||
message("Using SEMTECH device ...")
|
||||
aux_source_directory(semtech SEMTECH_SOURCES)
|
||||
list(APPEND HARDWARE_SRCS ${SEMTECH_SOURCES})
|
||||
endif()
|
||||
|
||||
add_library(${TARGET} STATIC
|
||||
${HARDWARE_SRCS}
|
||||
${USER_SOURCES}
|
||||
)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue