This repository has been archived on 2023-07-17. You can view files and clone it, but cannot push or open issues or pull requests.
bl_mcu_sdk/components/fatfs/CMakeLists.txt

42 lines
1.5 KiB
CMake
Raw Normal View History

2021-04-13 19:23:11 +08:00
################# Add global include #################
2021-06-21 14:45:33 +08:00
list(APPEND ADD_INCLUDE
2021-04-13 19:23:11 +08:00
"${CMAKE_CURRENT_SOURCE_DIR}"
)
#######################################################
################# Add private include #################
2021-06-21 14:45:33 +08:00
# list(APPEND ADD_PRIVATE_INCLUDE
2021-04-13 19:23:11 +08:00
# )
#######################################################
############## Add current dir source files ###########
file(GLOB_RECURSE sources "${CMAKE_CURRENT_SOURCE_DIR}/*.c")
list(APPEND ADD_SRCS ${sources})
# aux_source_directory(src ADD_SRCS)
# list(REMOVE_ITEM ADD_SRCS "${CMAKE_CURRENT_SOURCE_DIR}")
#######################################################
########### Add required/dependent components #########
2021-04-27 12:35:37 +08:00
#list(APPEND ADD_REQUIREMENTS xxx)
2021-04-13 19:23:11 +08:00
#######################################################
############ Add static libs ##########################
2021-06-21 14:45:33 +08:00
#list(APPEND ADD_STATIC_LIB "libxxx.a")
2021-04-13 19:23:11 +08:00
#######################################################
############ Add dynamic libs #########################
2021-04-27 12:35:37 +08:00
# list(APPEND ADD_DYNAMIC_LIB "libxxx.so")
2021-04-13 19:23:11 +08:00
#######################################################
############ Add global compile option ################
#add components denpend on this component
2021-04-27 12:35:37 +08:00
# list(APPEND ADD_DEFINITIONS -Dxxx)
2021-04-13 19:23:11 +08:00
#######################################################
############ Add private compile option ################
2021-06-21 14:45:33 +08:00
#add compile option for this component that won't affect other modules
# list(APPEND ADD_PRIVATE_DEFINITIONS -Dxxx)
2021-04-13 19:23:11 +08:00
#######################################################
generate_library()