21 lines
664 B
CMake
21 lines
664 B
CMake
|
#
|
||
|
# libclamav features written in Rust
|
||
|
#
|
||
|
# Copyright (C) 2021-2022 Cisco Systems, Inc. and/or its affiliates. All rights reserved
|
||
|
#
|
||
|
|
||
|
# libclamav rust static library
|
||
|
add_rust_library(TARGET clamav_rust
|
||
|
SOURCE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||
|
BINARY_DIRECTORY "${CMAKE_BINARY_DIR}"
|
||
|
# Tests cannot be pre-compiled here, because there are circular dependencies
|
||
|
# between libclamav_rust and libclamav to include calls like `cli_getdsig()`
|
||
|
# as well as the logging functions.
|
||
|
PRECOMPILE_TESTS FALSE
|
||
|
)
|
||
|
if (WIN32)
|
||
|
target_link_libraries(clamav_rust PUBLIC INTERFACE Userenv)
|
||
|
endif()
|
||
|
|
||
|
add_library(ClamAV::libclamav_rust ALIAS clamav_rust)
|