mirror of
https://gitlab.com/bzip2/bzip2.git
synced 2025-08-09 13:22:45 +03:00
Add FindRust.cmake module. Original source: https://github.com/micahsnyder/cmake-rust-demo Integrate bzlib_rust unit tests with CTest.
14 lines
317 B
CMake
14 lines
317 B
CMake
#
|
|
# bzlib features written in Rust
|
|
#
|
|
# Copyright (C) 2022 Micah Snyder
|
|
#
|
|
|
|
# bzlib rust static library
|
|
add_rust_library(TARGET bzlib_rust WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
if (WIN32)
|
|
target_link_libraries(bzlib_rust PUBLIC INTERFACE Userenv)
|
|
endif()
|
|
|
|
add_library(BZip2::bzlib_rust ALIAS bzlib_rust)
|