add basic plugin

This commit is contained in:
2023-10-25 17:51:48 +02:00
parent 12df9de1b4
commit 55ed8ffbf9
5 changed files with 97 additions and 3 deletions

View File

@@ -8,6 +8,9 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
else()
set(SOLANACEAE_CLAMAV_STANDALONE OFF)
endif()
message("II SOLANACEAE_CLAMAV_STANDALONE " ${SOLANACEAE_CLAMAV_STANDALONE})
option(SOLANACEAE_CLAMAV_BUILD_PLUGINS "Build the clamav plugins" ${SOLANACEAE_CLAMAV_STANDALONE})
if (SOLANACEAE_CLAMAV_STANDALONE)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
@@ -61,5 +64,8 @@ endif()
# cmake setup end
add_subdirectory(./src)
#add_subdirectory(./plugins)
if (SOLANACEAE_CLAMAV_BUILD_PLUGINS)
add_subdirectory(./plugins)
endif()