![Tomasz Moń](/assets/img/avatar_default.png)
Calling cmake with -DENABLE_VLD=ON when building with Visual Studio, results in debug configuration being linked to Visual Leak Detector. By default, Visual Leak Detector outputs the leak summary to Visual Studio debug window. When ENABLE_VLD is active, VLD is linked to all wireshark libraries and executables.
66 lines
1.2 KiB
CMake
66 lines
1.2 KiB
CMake
# CMakeLists.txt
|
|
#
|
|
# Wireshark - Network traffic analyzer
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
# Copyright 1998 Gerald Combs
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
#
|
|
|
|
|
|
set(RANDPKT_CORE_SRC
|
|
randpkt_core.c
|
|
)
|
|
|
|
set_source_files_properties(
|
|
${RANDPKT_CORE_SRC}
|
|
PROPERTIES
|
|
COMPILE_FLAGS "${WERROR_COMMON_FLAGS}"
|
|
)
|
|
|
|
file(GLOB RANDPKT_CORE_HEADERS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" randpkt_core.h)
|
|
|
|
add_library(randpkt_core STATIC
|
|
${RANDPKT_CORE_SRC}
|
|
)
|
|
|
|
set_target_properties(randpkt_core PROPERTIES
|
|
LINK_FLAGS "${WS_LINK_FLAGS}"
|
|
FOLDER "Libs")
|
|
if(MSVC)
|
|
set_target_properties(randpkt_core PROPERTIES LINK_FLAGS_DEBUG "${WS_MSVC_DEBUG_LINK_FLAGS}")
|
|
endif()
|
|
|
|
target_link_libraries(randpkt_core PUBLIC ui)
|
|
|
|
CHECKAPI(
|
|
NAME
|
|
randpkt_core-base
|
|
SWITCHES
|
|
SOURCES
|
|
${RANDPKT_CORE_SRC}
|
|
${RANDPKT_CORE_HEADERS}
|
|
)
|
|
CHECKAPI(
|
|
NAME
|
|
randpkt_core-todo
|
|
SWITCHES
|
|
-M
|
|
SOURCES
|
|
${RANDPKT_CORE_SRC}
|
|
${RANDPKT_CORE_HEADERS}
|
|
)
|
|
|
|
#
|
|
# Editor modelines - https://www.wireshark.org/tools/modelines.html
|
|
#
|
|
# Local variables:
|
|
# c-basic-offset: 8
|
|
# tab-width: 8
|
|
# indent-tabs-mode: t
|
|
# End:
|
|
#
|
|
# vi: set shiftwidth=8 tabstop=8 noexpandtab:
|
|
# :indentSize=8:tabSize=8:noTabs=false:
|
|
#
|