Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalize visual testing post build command #244

Merged

Conversation

greimela-si
Copy link
Contributor

The previous command assumed that a bash is installed on Windows and that it always builds in Release mode.

The previous command assumed that a `bash` is installed on Windows and that it always builds in Release mode.
@@ -139,7 +139,7 @@ if(BUILD_TESTING)
add_custom_command(TARGET example_test
POST_BUILD
COMMAND
bash -c "${qt5_install_prefix}/bin/windeployqt.exe ${CMAKE_CURRENT_BINARY_DIR}/Release")
cmd /C "${qt5_install_prefix}/bin/windeployqt.exe ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to use $<TARGET_FILE_DIR:example_test> rather than guessing at the destination folder using the build type.

@greimela-si
Copy link
Contributor Author

I updated the change to use $<TARGET_FILE_DIR:example_test> to find the build directory.

Not starting a CI run since this line is ignored anyway.

@wjwwood wjwwood merged commit 54fdc39 into ros2:ros2 Apr 14, 2018
@greimela-si greimela-si deleted the bugfix/generalize_visual_testing_post_build branch April 16, 2018 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants