1
0
mirror of https://gitlab.com/bzip2/bzip2.git synced 2025-08-09 13:22:45 +03:00
Files
bzip2/bzlib_rust/CMakeLists.txt
Micah Snyder 1c5049e9f0 CMake, Rust: build bzlib_rust with CMake
Add FindRust.cmake module. Original source:
https://github.com/micahsnyder/cmake-rust-demo

Integrate bzlib_rust unit tests with CTest.
2022-01-30 19:27:54 -08:00

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)