This matches what we offer for autotools.
###################################################################
option(WITH_SMI "Build with libsmi, if available" ON)
###################################################################
option(WITH_SMI "Build with libsmi, if available" ON)
+option(ENABLE_SMB "Build with the SMB dissector" ON)
#
# By default, build universal with the appropriate set of architectures
#
# By default, build universal with the appropriate set of architectures
+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
#
#
# Replace missing functions
#