branch | transitional_engine |
changeset 16021 | 6a3dc15b78b9 |
16009:7544a7d7c819 | 16021:6a3dc15b78b9 |
---|---|
1 cmake_minimum_required(VERSION 3.15) |
|
2 project(test_project VERSION 0.1.0) |
|
3 include(../../test_header.cmake) |
|
4 |
|
5 corrosion_import_crate(MANIFEST_PATH rust/Cargo.toml NO_STD) |
|
6 |
|
7 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nostdlib") |
|
8 list(REMOVE_ITEM CMAKE_CXX_IMPLICIT_LINK_LIBRARIES stdc++) |
|
9 |
|
10 add_library(nostd-cpp-lib STATIC main.cpp) |
|
11 target_link_libraries(nostd-cpp-lib PUBLIC rust-nostd-lib) |