mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 10:23:17 +00:00
22 lines
601 B
CMake
22 lines
601 B
CMake
# Copyright (C) 2020-2022 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
|
|
|
#
|
|
# Example executables
|
|
#
|
|
add_executable(ex1)
|
|
target_sources(ex1
|
|
PRIVATE ex1.c)
|
|
set_target_properties( ex1 PROPERTIES COMPILE_FLAGS "${WARNCFLAGS}" )
|
|
target_link_libraries(ex1
|
|
PRIVATE
|
|
ClamAV::libclamav)
|
|
|
|
if(ENABLE_STATIC_LIB)
|
|
add_executable(ex1_static)
|
|
set_target_properties( ex1_static PROPERTIES COMPILE_FLAGS "${WARNCFLAGS}" )
|
|
target_sources(ex1_static
|
|
PRIVATE ex1.c)
|
|
target_link_libraries(ex1_static
|
|
PRIVATE
|
|
ClamAV::libclamav_static)
|
|
endif()
|