Add kicad_3dsg copy for qa_pcbnew to run out of build dir

Mirror of the pcbnew step for the same reason
This commit is contained in:
Marek Roszko 2022-01-01 14:52:48 -05:00
parent 34e90e5045
commit b85fb9137f
1 changed files with 7 additions and 0 deletions

View File

@ -111,4 +111,11 @@ target_link_libraries( qa_pcbnew
${PCBNEW_EXTRA_LIBS} # -lrt must follow Boost
)
if( WIN32 )
# Copy dynamic lib dependency to build dir to allow running directly
add_custom_command( TARGET qa_pcbnew POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different "$<TARGET_FILE:kicad_3dsg>" "$<TARGET_FILE_DIR:qa_pcbnew>"
)
endif()
kicad_add_boost_test( qa_pcbnew qa_pcbnew )