-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Add targets for tests #10
Comments
Would this be as simple as adding: add_test(
NAME cargo-test_${target_name}
COMMAND
$<TARGET_FILE:Rust::Cargo> test --target ${_CORROSION_RUST_CARGO_TARGET}
-p ${package_name} --manifest-path ${path_to_toml}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/${build_dir}
) to the |
Looks like this request is way down in the list. But I would like to chime in. I would like to be able to run Any suggestion? |
Well, that means you would basically need corrosion to import this test executable with rules to build it. This requires:
Please do note: If you also want to support windows, then piping into |
Thanks, I agree that the use case is complicated and maybe not corrosion's to solve. I don't mind doing some custom cmake scripting for building the tests. The main thing though is that I would like to match the cargo flags passed by corrosion to the main target (build type). And if possible also prevent re-compilation by using the same target folder as the already-built main corrosion target. Is there some way to get that information out of the corrosion-generated target in cmake? |
No description provided.
The text was updated successfully, but these errors were encountered: