27 lines
778 B
CMake
27 lines
778 B
CMake
|
|
||
|
set(target uart1)
|
||
|
|
||
|
add_library(${target} STATIC)
|
||
|
set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_app_lib_dir})
|
||
|
# target_compile_definitions(${target} PRIVATE OSI_LOG_TAG=LOG_TAG_QUEC)
|
||
|
target_include_directories(${target} PUBLIC inc)
|
||
|
include_directories(${SOURCE_TOP_DIR}/components/app/t2n/include)
|
||
|
target_link_libraries(${target} PUBLIC)
|
||
|
|
||
|
target_sources(${target} PUBLIC
|
||
|
com_poll.c
|
||
|
uart1_modbus_master.c
|
||
|
http_download.c
|
||
|
fota.c
|
||
|
download.c
|
||
|
./bootloader/port/EC600U_port.c
|
||
|
./bootloader/port/esp32common.c
|
||
|
./bootloader/port/esp32flash.c
|
||
|
./bootloader/src/esp_loader.c
|
||
|
./bootloader/src/esp_targets.c
|
||
|
./bootloader/src/md5_hash.c
|
||
|
./bootloader/src/serial_comm.c
|
||
|
)
|
||
|
|
||
|
relative_glob(srcs include/*.h src/*.c inc/*.h)
|
||
|
beautify_c_code(${target} ${srcs})
|