1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
set(AFSOCKET_SOURCES
afsocket.c
afsocket.h
afsocket-source.c
afsocket-source.h
afsocket-dest.c
afsocket-dest.h
afsocket-signals.h
socket-options.c
socket-options.h
transport-mapper.c
transport-mapper.h
afinet.c
afinet.h
afinet-source.c
afinet-source.h
afinet-dest-failover.c
afinet-dest-failover.h
afinet-dest.c
afinet-dest.h
socket-options-inet.c
socket-options-inet.h
transport-mapper-inet.c
transport-mapper-inet.h
afunix-source.c
afunix-source.h
afunix-dest.c
afunix-dest.h
transport-mapper-unix.c
transport-mapper-unix.h
socket-options-unix.c
socket-options-unix.h
transport-unix-socket.c
transport-unix-socket.h
compat-unix-creds.c
compat-unix-creds.h
afsocket-grammar.y
afsocket-parser.c
afsocket-parser.h
afsocket-plugin.c
systemd-syslog-source.h
systemd-syslog-source.c
afsocket-systemd-override.h
)
find_package(ZLIB REQUIRED)
find_package(systemd)
add_module(
TARGET afsocket
GRAMMAR afsocket-grammar
INCLUDES ${ZLIB_INCLUDE_DIRS}
${WRAP_INCLUDE_DIRS}
${Libsystemd_INCLUDE_DIRS}
DEPENDS ${WRAP_LIBRARIES}
${ZLIB_LIBRARIES}
OpenSSL::SSL
OpenSSL::Crypto
libnet
${Libsystemd_LIBRARIES}
SOURCES ${AFSOCKET_SOURCES}
)
add_test_subdirectory(tests)
|