1
This commit is contained in:
parent
910a2d62ba
commit
bb427430b7
@ -51,9 +51,8 @@ target_link_libraries(camera_to_rtsp
|
|||||||
# 运行时把 config.json 复制到 bin/ 目录
|
# 运行时把 config.json 复制到 bin/ 目录
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET camera_to_rtsp POST_BUILD
|
TARGET camera_to_rtsp POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E echo "Checking config.json..."
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
COMMAND ${CMAKE_COMMAND} -E test -f $<TARGET_FILE_DIR:camera_to_rtsp>/config.json
|
${CMAKE_SOURCE_DIR}/config.json
|
||||||
|| ${CMAKE_COMMAND} -E copy
|
$<TARGET_FILE_DIR:camera_to_rtsp>/config.json.default
|
||||||
${CMAKE_SOURCE_DIR}/config.json
|
|
||||||
$<TARGET_FILE_DIR:camera_to_rtsp>/config.json
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user