Fix Windows gtest DLL discovery
This commit is contained in:
parent
a46c319d83
commit
2bdde181c5
@ -91,5 +91,14 @@ target_link_libraries(rk3588_gtests PRIVATE
|
||||
GTest::gtest_main
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
add_custom_command(TARGET rk3588_gtests POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
$<TARGET_FILE:rk_shared_state>
|
||||
$<TARGET_FILE_DIR:rk3588_gtests>
|
||||
COMMENT "Copy rk_shared_state.dll next to rk3588_gtests for Windows test discovery"
|
||||
)
|
||||
endif()
|
||||
|
||||
include(GoogleTest)
|
||||
gtest_discover_tests(rk3588_gtests)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user