malcontent-dns-parental-con.../CMakeLists.txt

23 lines
633 B
CMake
Raw Normal View History

2022-08-13 10:44:46 +02:00
# SPDX-FileCopyrightText: 2022 Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>
# SPDX-License-Identifier: CC0-1.0
2022-08-13 10:32:40 +02:00
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
)
FetchContent_MakeAvailable(Corrosion)
corrosion_import_crate(MANIFEST_PATH Cargo.toml)
2022-08-13 17:04:22 +02:00
get_target_property(corrosion_install_libraries nss_malcontent INTERFACE_LINK_LIBRARIES)
install(IMPORTED_RUNTIME_ARTIFACTS ${corrosion_install_libraries})