2016-02-22 06:21:53 +00:00
|
|
|
# CMakeLists.txt
|
|
|
|
#
|
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
|
|
# Copyright 1998 Gerald Combs
|
|
|
|
#
|
2018-03-06 14:31:02 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2016-02-22 06:21:53 +00:00
|
|
|
#
|
|
|
|
|
2017-09-02 23:42:00 +00:00
|
|
|
set(FTYPE_PUBLIC_HEADERS
|
|
|
|
ftypes.h
|
|
|
|
)
|
|
|
|
|
2019-01-01 17:17:55 +00:00
|
|
|
set(FTYPE_HEADER_FILES
|
|
|
|
${FTYPE_PUBLIC_HEADERS}
|
|
|
|
ftypes-int.h
|
|
|
|
)
|
|
|
|
|
2016-02-22 06:21:53 +00:00
|
|
|
set(FTYPE_FILES
|
|
|
|
ftypes.c
|
|
|
|
ftype-bytes.c
|
|
|
|
ftype-double.c
|
|
|
|
ftype-ieee-11073-float.c
|
|
|
|
ftype-integer.c
|
|
|
|
ftype-ipv4.c
|
|
|
|
ftype-ipv6.c
|
|
|
|
ftype-guid.c
|
|
|
|
ftype-none.c
|
2016-05-03 01:44:48 +00:00
|
|
|
ftype-protocol.c
|
2016-02-22 06:21:53 +00:00
|
|
|
ftype-string.c
|
|
|
|
ftype-time.c
|
|
|
|
)
|
|
|
|
source_group(ftype FILES ${FTYPE_FILES})
|
|
|
|
|
2016-09-30 14:06:15 +00:00
|
|
|
set_source_files_properties(
|
|
|
|
${FTYPE_FILES}
|
|
|
|
PROPERTIES
|
|
|
|
COMPILE_FLAGS "${WERROR_COMMON_FLAGS}"
|
|
|
|
)
|
2016-02-22 06:21:53 +00:00
|
|
|
|
|
|
|
add_library(ftypes OBJECT
|
2019-01-01 17:17:55 +00:00
|
|
|
#Included so that Visual Studio can properly put header files in solution
|
|
|
|
${FTYPE_HEADER_FILES}
|
|
|
|
|
2016-02-22 06:21:53 +00:00
|
|
|
${FTYPE_FILES}
|
|
|
|
)
|
|
|
|
|
2021-02-17 02:04:59 +00:00
|
|
|
target_include_directories(ftypes
|
|
|
|
PRIVATE
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/epan
|
|
|
|
)
|
|
|
|
|
2016-02-22 06:21:53 +00:00
|
|
|
set_target_properties(ftypes PROPERTIES
|
|
|
|
FOLDER "Libs/epan/ftypes"
|
|
|
|
COMPILE_DEFINITIONS "WS_BUILD_DLL"
|
|
|
|
)
|
|
|
|
|
2018-11-23 20:39:48 +00:00
|
|
|
install(FILES ${FTYPE_PUBLIC_HEADERS}
|
2019-02-01 16:25:24 +00:00
|
|
|
DESTINATION "${PROJECT_INSTALL_INCLUDEDIR}/epan/ftypes"
|
2018-11-23 20:39:48 +00:00
|
|
|
)
|
2017-09-02 23:42:00 +00:00
|
|
|
|
2016-05-11 13:31:39 +00:00
|
|
|
CHECKAPI(
|
|
|
|
NAME
|
|
|
|
ftypes
|
|
|
|
SWITCHES
|
|
|
|
SOURCES
|
|
|
|
${FTYPE_FILES}
|
|
|
|
)
|
2016-03-11 19:51:39 +00:00
|
|
|
|
2016-02-22 06:21:53 +00:00
|
|
|
#
|
2019-07-26 18:43:17 +00:00
|
|
|
# Editor modelines - https://www.wireshark.org/tools/modelines.html
|
2016-02-22 06:21:53 +00:00
|
|
|
#
|
|
|
|
# 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:
|
|
|
|
#
|