├── .github └── CODEOWNERS ├── .gitignore ├── CMakeLists.txt ├── LICENSE-APACHE ├── LICENSE-MIT ├── cmake ├── CMakeCargo.cmake ├── CMakeDetermineRustCompiler.cmake ├── CMakeRustCompiler.cmake.in ├── CMakeRustInformation.cmake ├── CMakeTestRustCompiler.cmake ├── CargoLink.cmake └── FindRust.cmake ├── crates ├── CMakeLists.txt ├── test-bin │ ├── .gitignore │ ├── Cargo.lock │ ├── Cargo.toml │ └── src │ │ └── main.rs └── test-lib │ ├── .gitignore │ ├── CMakeLists.txt │ ├── Cargo.lock │ ├── Cargo.toml │ └── src │ └── lib.rs ├── hello ├── CMakeLists.txt └── hello.rs └── hello_world ├── CMakeLists.txt ├── hello.c └── test_lib.h /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/.gitignore -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /cmake/CMakeCargo.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/cmake/CMakeCargo.cmake -------------------------------------------------------------------------------- /cmake/CMakeDetermineRustCompiler.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/cmake/CMakeDetermineRustCompiler.cmake -------------------------------------------------------------------------------- /cmake/CMakeRustCompiler.cmake.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/cmake/CMakeRustCompiler.cmake.in -------------------------------------------------------------------------------- /cmake/CMakeRustInformation.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/cmake/CMakeRustInformation.cmake -------------------------------------------------------------------------------- /cmake/CMakeTestRustCompiler.cmake: -------------------------------------------------------------------------------- 1 | 2 | set(CMAKE_Rust_COMPILER_WORKS 1 CACHE INTERNAL "") 3 | 4 | -------------------------------------------------------------------------------- /cmake/CargoLink.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/cmake/CargoLink.cmake -------------------------------------------------------------------------------- /cmake/FindRust.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/cmake/FindRust.cmake -------------------------------------------------------------------------------- /crates/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(test-lib) -------------------------------------------------------------------------------- /crates/test-bin/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | -------------------------------------------------------------------------------- /crates/test-bin/Cargo.lock: -------------------------------------------------------------------------------- 1 | [[package]] 2 | name = "test-bin" 3 | version = "0.1.0" 4 | 5 | -------------------------------------------------------------------------------- /crates/test-bin/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/crates/test-bin/Cargo.toml -------------------------------------------------------------------------------- /crates/test-bin/src/main.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | println!("Hello, world!"); 3 | } 4 | -------------------------------------------------------------------------------- /crates/test-lib/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | -------------------------------------------------------------------------------- /crates/test-lib/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cargo_build(NAME test-lib) 2 | -------------------------------------------------------------------------------- /crates/test-lib/Cargo.lock: -------------------------------------------------------------------------------- 1 | [[package]] 2 | name = "test-lib" 3 | version = "0.1.0" 4 | 5 | -------------------------------------------------------------------------------- /crates/test-lib/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/crates/test-lib/Cargo.toml -------------------------------------------------------------------------------- /crates/test-lib/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/crates/test-lib/src/lib.rs -------------------------------------------------------------------------------- /hello/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/hello/CMakeLists.txt -------------------------------------------------------------------------------- /hello/hello.rs: -------------------------------------------------------------------------------- 1 | 2 | fn main() { 3 | println!("Hello, World!"); 4 | } 5 | 6 | -------------------------------------------------------------------------------- /hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/hello_world/CMakeLists.txt -------------------------------------------------------------------------------- /hello_world/hello.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/hello_world/hello.c -------------------------------------------------------------------------------- /hello_world/test_lib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Devolutions/CMakeRust/HEAD/hello_world/test_lib.h --------------------------------------------------------------------------------