Conditionally add everything to LOCALSRC and include LOCALSRC in
NETDISSECT_SOURCE_LIST_C.
# Input files
######################################
+if(ENABLE_SMB)
+ #
+ # We allow the SMB dissector to be omitted.
+ #
+ set(LOCALSRC ${LOCALSRC}
+ print-smb.c
+ smbutil.c)
+endif(ENABLE_SMB)
+
set(NETDISSECT_SOURCE_LIST_C
addrtoname.c
addrtostr.c
print-wb.c
print-zephyr.c
print-zeromq.c
+ ${LOCALSRC}
netdissect.c
signature.c
strtoaddr.c
util-print.c
)
-if(ENABLE_SMB)
- #
- # We allow the SMB dissector to be omitted.
- #
- set(NETDISSECT_SOURCE_LIST_C ${NETDISSECT_SOURCE_LIST_C}
- print-smb.c
- smbutil.c)
-endif(ENABLE_SMB)
-
#
# Replace missing functions
#