
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
9 lines
212 B
CMake
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()
|