This commit is contained in:
cxh 2025-12-30 09:09:19 +08:00
parent 487a04d812
commit c382b0a3f4

View File

@ -51,12 +51,3 @@ target_link_libraries(${APP_NAME}
${CMAKE_SOURCE_DIR}/third_party/lib/libpaho-mqtt3a.a ${CMAKE_SOURCE_DIR}/third_party/lib/libpaho-mqtt3a.a
${CMAKE_SOURCE_DIR}/third_party/lib/libpaho-mqtt3c.a ${CMAKE_SOURCE_DIR}/third_party/lib/libpaho-mqtt3c.a
) )
#
add_custom_command(
TARGET ${APP_NAME}
POST_BUILD
COMMAND /bin/bash
"-c"
"if [ ! -f \"$<TARGET_FILE_DIR:${APP_NAME}>/${CONFIG_FILE}\" ]; then mkdir -p \"$<TARGET_FILE_DIR:${APP_NAME}>\" && cp \"${CMAKE_SOURCE_DIR}/${CONFIG_EXAMPLE_FILE}\" \"$<TARGET_FILE_DIR:${APP_NAME}>/${CONFIG_FILE}\"; fi"
)