TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags
[wireshark-sm.git] / tools / lemon / CMakeLists.txt
blobb7ba7543d149842d5ad75e18c1cbe17f8b119928
1 # CMakeLists.txt
3 # Wireshark - Network traffic analyzer
4 # By Gerald Combs <gerald@wireshark.org>
5 # Copyright 1998 Gerald Combs
7 # SPDX-License-Identifier: GPL-2.0-or-later
10 add_executable(lemon lemon.c)
12 if(DEFINED LEMON_C_COMPILER)
13         set(CMAKE_C_COMPILER "${LEMON_C_COMPILER}")
14         set(CMAKE_C_FLAGS "")
15         set(CMAKE_EXE_LINKER_FLAGS "")
16         set(CMAKE_SYSROOT "")
17 endif()
19 # To keep lemon.c as close to upstream as possible disable all warnings
20 if(CMAKE_C_COMPILER_ID MATCHES "MSVC")
21         target_compile_options(lemon PRIVATE /w)
22 else()
23         target_compile_options(lemon PRIVATE -w)
24 endif()
25 if(CMAKE_C_COMPILER_ID MATCHES "Clang")
26         # Disable static analysis for lemon source code. These issues don't
27         # affect Wireshark at runtime.
28         target_compile_options(lemon PRIVATE -Xclang -analyzer-disable-all-checks)
29 endif()
30 if(DEFINED NO_SANITIZE_CFLAGS)
31         target_compile_options(lemon PRIVATE ${NO_SANITIZE_CFLAGS})
32 endif()
33 if(DEFINED NO_SANITIZE_LDFLAGS)
34         target_link_options(lemon PRIVATE ${NO_SANITIZE_LDFLAGS})
35 endif()
38 # Editor modelines  -  https://www.wireshark.org/tools/modelines.html
40 # Local variables:
41 # c-basic-offset: 8
42 # tab-width: 8
43 # indent-tabs-mode: t
44 # End:
46 # vi: set shiftwidth=8 tabstop=8 noexpandtab:
47 # :indentSize=8:tabSize=8:noTabs=false: