Add kicad_3dsg copy for qa_pcbnew to run out of build dir

Mirror of the pcbnew step for the same reason


(cherry picked from commit b85fb9137f)
This commit is contained in:
Marek Roszko 2022-01-01 14:52:48 -05:00 committed by Mark Roszko
parent 6fd93eaa1e
commit f139cc2d9f
1 changed files with 7 additions and 0 deletions

View File

@ -109,4 +109,11 @@ target_link_libraries( qa_pcbnew
${PCBNEW_EXTRA_LIBS} # -lrt must follow Boost ${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 ) kicad_add_boost_test( qa_pcbnew qa_pcbnew )