mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-08-02 11:02:46 +08:00
Each Rust source file given to a target is considered a separate crate root. There's a concept of a "main crate root", which is the `.rs` file that is given to the final linker phase in CMake. Other Rust source file in a target are built as rlib separately. The project can still build `.rs` files into object files by setting the Rust_EMIT property on the desired source file.
4 lines
55 B
CMake
4 lines
55 B
CMake
|
|
project(DefaultRustPie LANGUAGES Rust)
|
|
setup(default)
|