corrosion icon indicating copy to clipboard operation
corrosion copied to clipboard

Add targets for tests

Open AndrewGaspar opened this issue 8 years ago • 4 comments

AndrewGaspar avatar Mar 11 '18 09:03 AndrewGaspar

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 _add_cargo_build function?

baszalmstra avatar May 14 '21 11:05 baszalmstra