1
This commit is contained in:
parent
487a04d812
commit
c382b0a3f4
@ -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-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"
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user