nextpnr/rust/CMakeLists.txt
Catherine cd7f7c12f1 CMake: refactor architecture-specific build system parts.
Two user-visible changes were made:
* `-DUSE_RUST` is replaced with `-DBUILD_RUST`, by analogy with
  `-DBUILD_PYTHON`
* `-DCOVERAGE` was removed as it doesn't work with either modern GCC
  or Clang
2025-01-21 17:13:03 +00:00

9 lines
212 B
CMake

add_library(nextpnr_rust INTERFACE)
target_include_directories(nextpnr_rust INTERFACE .)
target_sources(nextpnr_rust INTERFACE rust.h)
if (BUILD_RUST)
target_sources(nextpnr_rust INTERFACE rust.cc)
endif()