################# Add global include ################# list(APPEND ADD_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}" ) ####################################################### ################# Add private include ################# # list(APPEND ADD_PRIVATE_INCLUDE # ) ####################################################### ############## Add current dir source files ########### list(APPEND ADD_SRCS xz_crc32.c xz_dec_lzma2.c xz_dec_stream.c xz_decompress.c xz_port.c) # aux_source_directory(src ADD_SRCS) ####################################################### ########### Add required/dependent components ######### #list(APPEND ADD_REQUIREMENTS xxx) ####################################################### ############ Add static libs ########################## # if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB) # list(APPEND ADD_STATIC_LIB "libxxx.a") # endif() ####################################################### ############ Add dynamic libs ######################### # list(APPEND ADD_DYNAMIC_LIB "libxxx.so" # ) ####################################################### ############ Add global compile option ################ #add components denpend on this component # list(APPEND ADD_DEFINITIONS -Dxxx) ####################################################### ############ Add private compile option ################ #add compile option for this component that won't affect other modules # list(APPEND ADD_DEFINITIONS_PRIVATE -Dxxx) ####################################################### generate_library()