Fix running PcbNew from build dir on windows

This commit is contained in:
Jon Evans 2020-01-24 21:21:35 +00:00 committed by Ian McInerney
parent 460060a694
commit 56a9670cf6
1 changed files with 7 additions and 0 deletions

View File

@ -697,6 +697,13 @@ endif()
# if building pcbnew, then also build pcbnew_kiface if out of date.
add_dependencies( pcbnew pcbnew_kiface )
if( WIN32 )
# Copy dynamic lib dependency to build dir to allow running directly
add_custom_command( TARGET pcbnew POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different "$<TARGET_FILE:kicad_3dsg>" "$<TARGET_FILE_DIR:pcbnew>"
)
endif()
# these 2 binaries are a matched set, keep them together:
if( APPLE )
set_target_properties( pcbnew PROPERTIES