20 lines
532 B
CMake
20 lines
532 B
CMake
cmake_minimum_required(VERSION 3.23)
|
|
|
|
project(nss_malcontent
|
|
DESCRIPTION ""
|
|
VERSION 0.1.0
|
|
LANGUAGES C)
|
|
|
|
include(FetchContent)
|
|
FetchContent_Declare(
|
|
Corrosion
|
|
GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git
|
|
GIT_TAG v0.2.1
|
|
)
|
|
|
|
set(Rust_TOOLCHAIN nightly)
|
|
FetchContent_MakeAvailable(Corrosion)
|
|
corrosion_import_crate(MANIFEST_PATH Cargo.toml)
|
|
|
|
get_target_property(corrosion_install_libraries malcontent-nss INTERFACE_LINK_LIBRARIES)
|
|
install(IMPORTED_RUNTIME_ARTIFACTS ${corrosion_install_libraries}) |