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} )