2006-09-05 09:50:45 +00:00
|
|
|
# CMakeLists.txt
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
|
|
# Copyright 1998 Gerald Combs
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
#
|
|
|
|
|
2006-09-06 22:28:19 +00:00
|
|
|
project(wireshark C)
|
2006-09-05 09:27:22 +00:00
|
|
|
|
2009-06-16 05:37:46 +00:00
|
|
|
cmake_minimum_required(VERSION 2.6)
|
2009-06-16 04:12:30 +00:00
|
|
|
|
2006-10-26 15:36:50 +00:00
|
|
|
#Where to find local cmake scripts
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
|
2009-09-02 16:33:01 +00:00
|
|
|
INCLUDE(UseLemon)
|
2006-10-26 15:36:50 +00:00
|
|
|
|
2006-10-24 17:39:32 +00:00
|
|
|
# Under linux the release mode (CMAKE_BUILD_TYPE=release) defines NDEBUG
|
|
|
|
|
2006-09-13 10:51:40 +00:00
|
|
|
# Disable this later. Alternative: "make VERBOSE=1"
|
2006-09-06 22:28:19 +00:00
|
|
|
set(CMAKE_VERBOSE_MAKEFILE ON)
|
2006-09-13 10:51:40 +00:00
|
|
|
|
2006-09-06 22:28:19 +00:00
|
|
|
set(BUILD_SHARED_LIBS ON)
|
2006-09-05 09:27:22 +00:00
|
|
|
|
2009-08-29 09:13:28 +00:00
|
|
|
#Defines CMAKE_INSTALL_BINDIR, CMAKE_INSTALL_DATADIR, etc ...
|
2006-10-26 15:36:50 +00:00
|
|
|
include(CMakeInstallDirs)
|
2006-09-05 09:27:22 +00:00
|
|
|
|
2006-10-26 15:36:50 +00:00
|
|
|
include_directories(
|
2009-09-02 16:33:01 +00:00
|
|
|
${CMAKE_BINARY_DIR}
|
2009-09-16 04:20:58 +00:00
|
|
|
|
2009-09-02 16:33:01 +00:00
|
|
|
${CMAKE_SOURCE_DIR}
|
2009-09-07 07:26:43 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/epan
|
|
|
|
${CMAKE_SOURCE_DIR}/tools/lemon
|
2009-09-02 16:33:01 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/wiretap
|
2006-10-26 15:36:50 +00:00
|
|
|
)
|
2006-09-05 09:27:22 +00:00
|
|
|
|
2006-10-24 17:39:32 +00:00
|
|
|
#Where to put libraries
|
|
|
|
if(NOT LIBRARY_OUTPUT_PATH)
|
2009-09-02 16:33:01 +00:00
|
|
|
set(LIBRARY_OUTPUT_PATH ${wireshark_BINARY_DIR}/lib CACHE INTERNAL
|
|
|
|
"Single output directory for building all libraries.")
|
2009-08-27 16:11:16 +00:00
|
|
|
endif()
|
2006-10-24 17:39:32 +00:00
|
|
|
|
2009-08-29 09:13:28 +00:00
|
|
|
option(BUILD_wireshark "Build the GUI version of Wireshark" ON)
|
|
|
|
option(BUILD_tshark "Build tshark" ON)
|
|
|
|
option(BUILD_rawshark "Build rawshark" ON)
|
2009-06-16 05:52:16 +00:00
|
|
|
option(BUILD_dumpcap "Build dumpcap" ON)
|
|
|
|
option(BUILD_text2pcap "Build text2pcap" ON)
|
|
|
|
option(BUILD_mergecap "Build mergecap" ON)
|
|
|
|
option(BUILD_editcap "Build editcap" ON)
|
|
|
|
option(BUILD_capinfos "Build capinfos" ON)
|
2009-08-29 09:13:28 +00:00
|
|
|
option(BUILD_randpkt "Build randpkt" ON)
|
2009-06-16 05:37:46 +00:00
|
|
|
option(BUILD_dftest "Build dftest" ON)
|
2009-09-09 13:20:33 +00:00
|
|
|
|
2009-09-14 06:51:22 +00:00
|
|
|
option(DISABLE_WERROR "Do not treat Warnings as errors" OFF)
|
|
|
|
option(ENABLE_EXTRA_GCC_CHECKS "Do additional -W checks in GCC (disables -Werror)" ON)
|
2009-09-09 13:20:33 +00:00
|
|
|
option(ENABLE_AIRPCAP "Enable Airpcap support" ON)
|
|
|
|
# todo
|
2006-10-24 17:39:32 +00:00
|
|
|
option(ENABLE_STATIC "Build a static version of Wireshark" OFF)
|
2009-09-15 12:22:13 +00:00
|
|
|
option(ENABLE_PLUGINS "Build with plugins" ON)
|
2009-09-09 13:20:33 +00:00
|
|
|
|
2009-08-27 15:55:58 +00:00
|
|
|
option(ENABLE_ADNS "Build with adns support" ON)
|
2009-09-09 13:20:33 +00:00
|
|
|
option(ENABLE_PCRE "Build with pcre support" ON)
|
|
|
|
option(ENABLE_PORTAUDIO "Build with portaudio support" ON)
|
2009-09-15 12:22:13 +00:00
|
|
|
option(ENABLE_Z "Build with zlib compression support" ON)
|
2009-09-12 17:20:08 +00:00
|
|
|
# todo wslua currently seems to be broken
|
2009-09-10 07:04:54 +00:00
|
|
|
option(ENABLE_LUA "Build with lua dissector support" OFF)
|
2009-09-12 17:20:08 +00:00
|
|
|
option(ENABLE_PYTHON "Build with python dissector support" ON)
|
2009-09-09 13:20:33 +00:00
|
|
|
option(ENABLE_SMI "Build with smi snmp support" ON)
|
|
|
|
option(ENABLE_GNUTLS "Build with GNU TLS support" ON)
|
|
|
|
option(ENABLE_GCRYPT "Build with GNU crypto support" ON)
|
2009-09-12 17:20:08 +00:00
|
|
|
option(ENABLE_GEOIP "Build with GeoIP support" ON)
|
|
|
|
option(ENABLE_CAP "Build with posix capabilities support" ON)
|
|
|
|
option(ENABLE_CARES "Build with c_ares support" ON)
|
2009-09-10 07:04:54 +00:00
|
|
|
# todo Mostly hardcoded
|
|
|
|
option(ENABLE_KERBEROS "Build with Kerberos support" ON)
|
2009-09-09 13:20:33 +00:00
|
|
|
|
2006-10-26 15:36:50 +00:00
|
|
|
|
2009-09-15 12:22:13 +00:00
|
|
|
set(WIRESHARK_C_FLAGS
|
2009-09-14 06:51:22 +00:00
|
|
|
-O2
|
|
|
|
-Werror
|
|
|
|
-Wall
|
|
|
|
-W
|
|
|
|
-Wextra
|
|
|
|
-Wdeclaration-after-statement
|
|
|
|
-Wendif-labels
|
|
|
|
-Wpointer-arith
|
|
|
|
-Wno-pointer-sign
|
|
|
|
-Warray-bounds
|
|
|
|
-Wcast-align
|
|
|
|
-Wformat-security
|
|
|
|
)
|
|
|
|
|
2009-09-15 12:22:13 +00:00
|
|
|
set(WIRESHARK_EXTRA_C_FLAGS
|
2009-09-14 06:51:22 +00:00
|
|
|
-pedantic
|
|
|
|
-Woverflow
|
|
|
|
-Wlogical-op
|
|
|
|
-Wno-overlength-strings
|
|
|
|
-fstrict-overflow -Wstrict-overflow=4
|
|
|
|
-Wunreachable-code
|
|
|
|
-Wunsafe-loop-optimizations
|
|
|
|
-Wno-long-long
|
|
|
|
-Wbad-function-cast
|
|
|
|
-Wcast-qual
|
|
|
|
-Waddress
|
|
|
|
-Warray-bounds
|
|
|
|
-Wattributes
|
|
|
|
-Wdiv-by-zero
|
|
|
|
-Wformat-security
|
|
|
|
-Wignored-qualifiers
|
|
|
|
-Wpragmas
|
|
|
|
-Wredundant-decls
|
|
|
|
-Wvla
|
|
|
|
# packet-ncp2222.inc prevents this from going into all warnings
|
|
|
|
-Wwrite-strings
|
|
|
|
-Wstrict-prototypes
|
|
|
|
-Wmissing-declarations
|
|
|
|
# Problem with packet-afs.c
|
|
|
|
-Wshadow
|
|
|
|
# More cleanup needed for this on LP64
|
|
|
|
-Wshorten-64-to-32
|
|
|
|
)
|
|
|
|
|
2006-10-26 15:36:50 +00:00
|
|
|
if(ENABLE_EXTRA_GCC_CHECKS)
|
2009-09-15 12:22:13 +00:00
|
|
|
set(WIRESHARK_C_FLAGS ${WIRESHARK_C_FLAGS} ${WIRESHARK_EXTRA_C_FLAGS})
|
2009-08-27 16:11:16 +00:00
|
|
|
endif()
|
2006-10-26 15:36:50 +00:00
|
|
|
|
2009-09-08 16:07:14 +00:00
|
|
|
add_definitions(
|
|
|
|
-DHAVE_CONFIG_H
|
|
|
|
-DPACKAGE=\"wireshark\"
|
|
|
|
-DNEW_PACKET_LIST
|
|
|
|
)
|
|
|
|
|
2009-09-24 20:42:08 +00:00
|
|
|
# Counterhack to work around some cache magic in CHECK_C_SOURCE_COMPILES
|
2009-09-14 06:51:22 +00:00
|
|
|
include(CheckCCompilerFlag)
|
2009-09-24 20:42:08 +00:00
|
|
|
set(C 0)
|
|
|
|
# Sigh: Have to use THIS_FLAG instead of ${F} for some reason
|
|
|
|
foreach(THIS_FLAG ${WIRESHARK_C_FLAGS})
|
|
|
|
set(F WS_C_FLAG_${C})
|
|
|
|
set(${F} ${THIS_FLAG})
|
|
|
|
set(V WS_C_FLAG_VALID${C})
|
|
|
|
check_c_compiler_flag(${${F}} ${V})
|
|
|
|
if (${${V}})
|
|
|
|
add_definitions(${${F}})
|
2009-09-14 06:51:22 +00:00
|
|
|
endif()
|
2009-09-24 20:42:08 +00:00
|
|
|
math(EXPR C "${C} + 1")
|
2009-09-14 06:51:22 +00:00
|
|
|
endforeach()
|
|
|
|
|
|
|
|
if(DISABLE_WERROR OR ENABLE_EXTRA_GCC_CHECKS)
|
|
|
|
remove_definitions( -Werror )
|
|
|
|
endif()
|
|
|
|
|
2006-10-26 15:36:50 +00:00
|
|
|
if(CMAKE_COMPILER_IS_GNUCC)
|
2009-09-14 06:51:22 +00:00
|
|
|
add_definitions( -D_U_=__attribute__\(\(unused\)\) )
|
2009-08-27 16:11:16 +00:00
|
|
|
else()
|
2009-09-14 06:51:22 +00:00
|
|
|
add_definitions( -D_U_=\"\" )
|
2009-08-27 16:11:16 +00:00
|
|
|
endif()
|
2006-10-24 17:39:32 +00:00
|
|
|
|
2009-09-14 06:51:22 +00:00
|
|
|
# todo
|
|
|
|
# Same for linker flags, but it looks like it's do-it-yourself here
|
|
|
|
# AC_WIRESHARK_GCC_LDFLAGS_CHECK([-Wl,--as-needed])
|
|
|
|
|
2006-10-24 17:39:32 +00:00
|
|
|
#The minimum package list
|
2009-09-10 07:04:54 +00:00
|
|
|
set(PACKAGELIST GLIB2 PCAP M LEX YACC Perl SH PythonInterp HtmlViewer ${PACKAGELIST})
|
2006-10-24 17:39:32 +00:00
|
|
|
|
2009-09-02 16:33:01 +00:00
|
|
|
#Build the gui ?
|
2009-08-29 09:13:28 +00:00
|
|
|
if(BUILD_wireshark)
|
2009-09-02 16:33:01 +00:00
|
|
|
set(PACKAGELIST GTK2 ${PACKAGELIST})
|
2009-08-27 16:11:16 +00:00
|
|
|
endif()
|
2006-10-24 17:39:32 +00:00
|
|
|
|
2009-09-09 13:20:33 +00:00
|
|
|
# SMI SNMP
|
|
|
|
if(ENABLE_SMI)
|
|
|
|
set(PACKAGELIST SMI ${PACKAGELIST})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# GNU crypto
|
|
|
|
if(ENABLE_GCRYPT)
|
|
|
|
set(PACKAGELIST GCRYPT ${PACKAGELIST})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# GNU SSL/TLS support
|
|
|
|
if(ENABLE_GNUTLS)
|
|
|
|
set(PACKAGELIST GNUTLS ${PACKAGELIST})
|
|
|
|
endif()
|
|
|
|
|
2009-09-08 07:03:57 +00:00
|
|
|
# Regular expressions lib
|
|
|
|
if(ENABLE_PCRE)
|
|
|
|
set(PACKAGELIST PCRE ${PACKAGELIST})
|
|
|
|
endif()
|
|
|
|
|
2009-09-10 07:04:54 +00:00
|
|
|
# Kerberos
|
|
|
|
if(ENABLE_KERBEROS)
|
|
|
|
set(PACKAGELIST KERBEROS ${PACKAGELIST})
|
|
|
|
endif()
|
|
|
|
|
2009-09-09 13:20:33 +00:00
|
|
|
# Portable audio
|
|
|
|
if(ENABLE_PORTAUDIO)
|
|
|
|
set(PACKAGELIST PORTAUDIO ${PACKAGELIST})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2009-09-12 17:20:08 +00:00
|
|
|
# Prefer c-ares over adns
|
|
|
|
if(ENABLE_CARES) # C Asynchronouse resolver
|
|
|
|
set(PACKAGELIST CARES ${PACKAGELIST})
|
|
|
|
elseif(ENABLE_ADNS) # Gnu asynchronous DNS
|
2009-09-02 16:33:01 +00:00
|
|
|
set(PACKAGELIST ADNS ${PACKAGELIST})
|
2009-08-27 16:11:16 +00:00
|
|
|
endif()
|
2006-10-24 17:39:32 +00:00
|
|
|
|
2009-09-09 13:20:33 +00:00
|
|
|
# Zlib compression
|
|
|
|
if(ENABLE_Z)
|
|
|
|
set(PACKAGELIST Z ${PACKAGELIST})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Lua 5.1 dissectors
|
|
|
|
if(ENABLE_LUA)
|
|
|
|
set(PACKAGELIST LUA ${PACKAGELIST})
|
|
|
|
endif()
|
|
|
|
|
2009-09-10 07:04:54 +00:00
|
|
|
# GeoIP address resolving
|
|
|
|
if(ENABLE_GEOIP)
|
|
|
|
set(PACKAGELIST GEOIP ${PACKAGELIST})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Capabilities
|
|
|
|
if(ENABLE_CAP)
|
|
|
|
set(PACKAGELIST CAP ${PACKAGELIST})
|
|
|
|
endif()
|
|
|
|
|
2009-09-12 17:20:08 +00:00
|
|
|
if(ENABLE_PYTHON)
|
|
|
|
set(PACKAGELIST PYTHON ${PACKAGELIST})
|
|
|
|
endif()
|
|
|
|
|
2009-06-16 05:52:16 +00:00
|
|
|
set(PROGLIST text2pcap mergecap capinfos editcap dumpcap)
|
2009-06-16 05:37:46 +00:00
|
|
|
|
2009-08-29 09:13:28 +00:00
|
|
|
#Let's loop the package list
|
2006-09-06 22:28:19 +00:00
|
|
|
foreach(PACKAGE ${PACKAGELIST})
|
2009-09-02 16:33:01 +00:00
|
|
|
find_package(${PACKAGE} REQUIRED)
|
|
|
|
message(${PACKAGE}_FOUND)
|
|
|
|
if (${PACKAGE}_FOUND)
|
2009-09-12 17:20:08 +00:00
|
|
|
set(HAVE_LIB${PACKAGE} 1)
|
2009-09-02 16:33:01 +00:00
|
|
|
include_directories(${${PACKAGE}_INCLUDE_DIRS})
|
2009-09-09 13:20:33 +00:00
|
|
|
message(STATUS "${PACKAGE} includes: ${${PACKAGE}_INCLUDE_DIRS}")
|
|
|
|
message(STATUS "${PACKAGE} libs: ${${PACKAGE}_LIBRARIES}")
|
2009-09-02 16:33:01 +00:00
|
|
|
endif()
|
2009-08-27 16:11:16 +00:00
|
|
|
endforeach()
|
2006-09-06 22:28:19 +00:00
|
|
|
|
2009-09-12 17:20:08 +00:00
|
|
|
if(HAVE_LIBPYTHON)
|
|
|
|
set(HAVE_PYTHON 1)
|
|
|
|
set(PYTHON_DIR "${CMAKE_INSTALL_PREFIX}/lib/wireshark/python/${VERSION}")
|
2009-09-10 07:04:54 +00:00
|
|
|
endif()
|
2009-09-09 13:20:33 +00:00
|
|
|
if(HAVE_LIBLUA)
|
|
|
|
set(HAVE_LUA_H 1)
|
|
|
|
set(HAVE_LUA_5_1 1)
|
|
|
|
endif()
|
2009-09-10 07:04:54 +00:00
|
|
|
if(HAVE_LIBKERBEROS)
|
|
|
|
set(HAVE_KERBEROS 1)
|
|
|
|
# HAVE_HEIMDAL_KERBEROS
|
|
|
|
set(HAVE_MIT_KERBEROS 1)
|
|
|
|
set(HAVE_KEYTYPE_ARCFOUR_56 1)
|
|
|
|
endif()
|
2009-09-12 17:20:08 +00:00
|
|
|
if(HAVE_LIBGEOIP)
|
|
|
|
set(HAVE_GEOIP 1)
|
|
|
|
endif()
|
2009-09-09 13:20:33 +00:00
|
|
|
if(HAVE_LIBCARES)
|
|
|
|
set(HAVE_C_ARES 1)
|
2009-09-12 17:20:08 +00:00
|
|
|
endif()
|
|
|
|
if(HAVE_LIBADNS)
|
2009-09-07 07:26:43 +00:00
|
|
|
set(HAVE_GNU_ADNS 1)
|
|
|
|
endif()
|
2009-09-09 13:20:33 +00:00
|
|
|
if(ENABLE_AIRPCAP)
|
|
|
|
set(HAVE_AIRPCAP 1)
|
|
|
|
endif()
|
2009-09-07 07:26:43 +00:00
|
|
|
|
2009-08-27 15:32:57 +00:00
|
|
|
include(ConfigureChecks.cmake)
|
2006-10-24 17:39:32 +00:00
|
|
|
|
|
|
|
#Big or little endian ?
|
|
|
|
include(TestBigEndian)
|
|
|
|
test_big_endian(WORDS_BIGENDIAN)
|
|
|
|
|
2009-09-25 02:50:48 +00:00
|
|
|
#packaging
|
|
|
|
set(CPACK_PACKAGE_NAME wireshark)
|
|
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "capture packet")
|
|
|
|
set(CPACK_PACKAGE_VENDOR "wireshark")
|
|
|
|
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
|
|
|
|
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
|
|
|
|
set(CPACK_PACKAGE_VERSION_MAJOR "1")
|
|
|
|
set(CPACK_PACKAGE_VERSION_MINOR "3")
|
|
|
|
set(CPACK_PACKAGE_VERSION_PATCH "1")
|
|
|
|
set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
|
|
|
|
|
|
|
|
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
|
|
|
|
set(CPACK_PACKAGE_INSTALL_DIRECTORY "/usr")
|
|
|
|
set(CPACK_GENERATOR "TGZ")
|
|
|
|
set(CPACK_SOURCE_GENERATOR "TGZ")
|
|
|
|
|
2006-10-24 17:39:32 +00:00
|
|
|
set(DATAFILE_DIR "${CMAKE_INSTALL_PREFIX}/share/${CPACK_PACKAGE_NAME}")
|
|
|
|
|
2009-09-15 12:22:13 +00:00
|
|
|
if(ENABLE_PLUGINS)
|
|
|
|
set(HAVE_PLUGINS 1)
|
|
|
|
set(PLUGIN_DIR="${DATAFILE_DIR}/plugins/${CPACK_PACKAGE_VERSION}")
|
|
|
|
set(PLUGIN_SRC_DIRS
|
|
|
|
plugins/asn1
|
2009-09-16 06:30:03 +00:00
|
|
|
plugins/docsis
|
|
|
|
plugins/ethercat
|
2009-09-21 00:19:07 +00:00
|
|
|
# plugins/giop
|
2009-09-16 06:30:03 +00:00
|
|
|
plugins/gryphon
|
|
|
|
plugins/irda
|
|
|
|
plugins/m2m
|
|
|
|
plugins/mate
|
2009-09-21 00:19:07 +00:00
|
|
|
plugins/opcua
|
2009-09-23 04:41:14 +00:00
|
|
|
plugins/profinet
|
|
|
|
plugins/sercosiii
|
|
|
|
plugins/stats_tree
|
|
|
|
# plugins/tpg
|
|
|
|
plugins/unistim
|
|
|
|
plugins/wimax
|
|
|
|
plugins/wimaxasncp
|
2009-09-15 12:22:13 +00:00
|
|
|
)
|
|
|
|
else()
|
|
|
|
set(PLUGIN_SRC_DIRS )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
foreach(PLUGIN_DIR ${PLUGIN_SRC_DIRS})
|
|
|
|
add_subdirectory( ${PLUGIN_DIR} )
|
|
|
|
endforeach()
|
|
|
|
|
2006-10-24 17:39:32 +00:00
|
|
|
#Platform specific
|
|
|
|
if(UNIX)
|
2009-09-02 16:33:01 +00:00
|
|
|
set(WS_VAR_IMPORT "extern")
|
2009-08-27 16:11:16 +00:00
|
|
|
endif()
|
2006-10-24 17:39:32 +00:00
|
|
|
|
|
|
|
if(APPLE)
|
|
|
|
#TODO verify that APPLE implies HAVE_OS_X_FRAMEWORKS
|
2009-09-02 16:33:01 +00:00
|
|
|
set(HAVE_OS_X_FRAMEWORKS 1)
|
2009-09-23 19:52:45 +00:00
|
|
|
FIND_LIBRARY (APPLE_CORE_SERVICES_LIBRARY CoreServices)
|
|
|
|
FIND_LIBRARY (APPLE_COCOA_LIBRARY Cocoa)
|
2009-08-27 16:11:16 +00:00
|
|
|
endif()
|
2006-10-24 17:39:32 +00:00
|
|
|
|
|
|
|
if(WIN32)
|
2009-09-09 14:01:57 +00:00
|
|
|
add_definitions(-D_NEED_VAR_IMPORT_)
|
2009-09-02 16:33:01 +00:00
|
|
|
set(WS_VAR_IMPORT "__declspec(dllimport) extern")
|
2009-08-30 14:12:56 +00:00
|
|
|
|
2009-09-02 16:33:01 +00:00
|
|
|
# Disable deprecation
|
|
|
|
if(MSVC80 OR MSVC90)
|
|
|
|
add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
|
|
|
|
endif()
|
2009-08-27 16:11:16 +00:00
|
|
|
endif()
|
2006-10-24 17:39:32 +00:00
|
|
|
|
|
|
|
|
2009-09-15 12:22:13 +00:00
|
|
|
add_subdirectory( codecs )
|
2009-09-07 07:26:43 +00:00
|
|
|
add_subdirectory( epan )
|
2009-09-08 15:56:16 +00:00
|
|
|
add_subdirectory( gtk )
|
2009-09-07 07:26:43 +00:00
|
|
|
add_subdirectory( wiretap )
|
|
|
|
add_subdirectory( wsutil )
|
|
|
|
|
2006-09-06 22:28:19 +00:00
|
|
|
configure_file(${CMAKE_SOURCE_DIR}/cmakeconfig.h.in ${CMAKE_BINARY_DIR}/config.h)
|
|
|
|
|
2009-09-24 20:42:08 +00:00
|
|
|
include(FeatureSummary)
|
|
|
|
#SET_FEATURE_INFO(NAME DESCRIPTION [URL [COMMENT] ]
|
|
|
|
PRINT_ENABLED_FEATURES()
|
|
|
|
PRINT_DISABLED_FEATURES()
|
|
|
|
|
2009-06-15 18:59:33 +00:00
|
|
|
link_directories(
|
2009-09-09 13:20:33 +00:00
|
|
|
gtk
|
|
|
|
codecs
|
2009-09-08 15:56:16 +00:00
|
|
|
epan
|
2009-09-02 16:33:01 +00:00
|
|
|
wiretap
|
|
|
|
wsutil
|
2009-06-15 18:59:33 +00:00
|
|
|
)
|
2006-10-24 17:39:32 +00:00
|
|
|
|
2009-05-29 10:57:47 +00:00
|
|
|
ADD_CUSTOM_COMMAND(
|
2009-09-25 02:50:48 +00:00
|
|
|
OUTPUT svnversion.h
|
|
|
|
COMMAND ${PERL}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/make-version.pl
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
DEPENDS
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/make-version.pl
|
2009-05-29 10:57:47 +00:00
|
|
|
)
|
2006-10-24 17:39:32 +00:00
|
|
|
|
2009-09-02 16:33:01 +00:00
|
|
|
# Create the necessary tools
|
|
|
|
set(lemon_FILES
|
|
|
|
tools/lemon/lemon.c
|
|
|
|
)
|
|
|
|
set(lemon_LIBS
|
|
|
|
# Do we need something here on any platform?
|
|
|
|
)
|
|
|
|
add_executable(lemon ${lemon_FILES})
|
|
|
|
target_link_libraries(lemon ${lemon_LIBS})
|
2009-09-08 07:03:57 +00:00
|
|
|
# but don't install
|
|
|
|
|
|
|
|
ADD_CUSTOM_COMMAND(
|
|
|
|
OUTPUT tshark-tap-register.c
|
|
|
|
COMMAND ${SHELL}
|
|
|
|
${CMAKE_SOURCE_DIR}/make-tapreg-dotc
|
|
|
|
tshark-tap-register.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${TSHARK_TAP_SRC}
|
|
|
|
DEPENDS
|
|
|
|
${CMAKE_SOURCE_DIR}/make-tapreg-dotc
|
|
|
|
${TSHARK_TAP_SRC}
|
|
|
|
)
|
|
|
|
|
|
|
|
ADD_CUSTOM_COMMAND(
|
|
|
|
OUTPUT ps.c
|
|
|
|
COMMAND ${PYTHON_EXECUTABLE}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rdps.py
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/print.ps
|
|
|
|
ps.c
|
|
|
|
DEPENDS
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/rdps.py
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/print.ps
|
|
|
|
)
|
2009-09-02 16:33:01 +00:00
|
|
|
|
2009-06-16 04:12:30 +00:00
|
|
|
if(UNIX)
|
2009-09-02 16:33:01 +00:00
|
|
|
set(PLATFORM_SRC
|
|
|
|
capture-pcap-util-unix.c
|
|
|
|
)
|
2009-08-27 16:11:16 +00:00
|
|
|
endif()
|
2009-08-30 06:24:44 +00:00
|
|
|
|
|
|
|
if(WIN32)
|
2009-09-02 16:33:01 +00:00
|
|
|
set(PLATFORM_SRC
|
|
|
|
capture-wpcap.c capture_wpcap_packet.c
|
|
|
|
)
|
2009-08-30 06:24:44 +00:00
|
|
|
endif()
|
2009-06-16 04:12:30 +00:00
|
|
|
|
2009-09-15 12:22:13 +00:00
|
|
|
set(WTAP_PLUGIN_SOURCES
|
|
|
|
epan/plugins.c
|
|
|
|
epan/report_err.c
|
|
|
|
epan/filesystem.c
|
|
|
|
)
|
|
|
|
|
2009-09-08 07:03:57 +00:00
|
|
|
set(WIRESHARK_COMMON_SRC
|
|
|
|
${PLATFORM_SRC}
|
|
|
|
capture_errs.c
|
|
|
|
capture-pcap-util.c
|
|
|
|
capture_ui_utils.c
|
|
|
|
cfile.c
|
|
|
|
clopts_common.c
|
|
|
|
disabled_protos.c
|
|
|
|
packet-range.c
|
|
|
|
print.c
|
|
|
|
ps.c
|
|
|
|
sync_pipe_write.c
|
|
|
|
timestats.c
|
|
|
|
util.c
|
|
|
|
tap-megaco-common.c
|
|
|
|
tap-rtp-common.c
|
|
|
|
version_info.c
|
|
|
|
)
|
|
|
|
|
|
|
|
set(TSHARK_TAP_SRC
|
|
|
|
tap-afpstat.c
|
|
|
|
tap-ansi_astat.c
|
|
|
|
tap-bootpstat.c
|
|
|
|
tap-camelcounter.c
|
|
|
|
tap-camelsrt.c
|
|
|
|
tap-comparestat.c
|
|
|
|
tap-dcerpcstat.c
|
|
|
|
tap-funnel.c
|
|
|
|
tap-gsm_astat.c
|
|
|
|
tap-h225counter.c
|
|
|
|
tap-h225rassrt.c
|
|
|
|
tap-httpstat.c
|
|
|
|
tap-iostat.c
|
|
|
|
tap-iousers.c
|
|
|
|
tap-mgcpstat.c
|
|
|
|
tap-megacostat.c
|
|
|
|
tap-protocolinfo.c
|
|
|
|
tap-protohierstat.c
|
|
|
|
tap-radiusstat.c
|
|
|
|
tap-rpcstat.c
|
|
|
|
tap-rpcprogs.c
|
|
|
|
tap-rtp.c
|
|
|
|
tap-sctpchunkstat.c
|
|
|
|
tap-sipstat.c
|
|
|
|
tap-smbsids.c
|
|
|
|
tap-smbstat.c
|
|
|
|
tap-stats_tree.c
|
|
|
|
tap-wspstat.c
|
|
|
|
)
|
|
|
|
|
2009-09-21 00:19:07 +00:00
|
|
|
set(INSTALL_DIRS
|
|
|
|
diameter
|
|
|
|
dtds
|
|
|
|
help
|
|
|
|
radius
|
|
|
|
tpncp
|
|
|
|
wimaxasncp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(INSTALL_FILES
|
2009-09-25 02:50:48 +00:00
|
|
|
${CMAKE_BINARY_DIR}/AUTHORS-SHORT
|
2009-09-21 00:19:07 +00:00
|
|
|
COPYING
|
|
|
|
# capinfos.html
|
2009-09-25 02:50:48 +00:00
|
|
|
cfilters
|
|
|
|
colorfilters
|
2009-09-21 00:19:07 +00:00
|
|
|
# console.lua
|
2009-09-25 02:50:48 +00:00
|
|
|
dfilters
|
2009-09-21 00:19:07 +00:00
|
|
|
# dtd_gen.lua
|
|
|
|
# dumpcap.html
|
|
|
|
# editcap.html
|
|
|
|
# idl2wrs.html
|
|
|
|
# init.lua
|
|
|
|
# ipmap.html
|
2009-09-25 02:50:48 +00:00
|
|
|
manuf
|
2009-09-21 00:19:07 +00:00
|
|
|
# mergecap.html
|
|
|
|
# rawshark.html
|
2009-09-25 02:50:48 +00:00
|
|
|
services
|
|
|
|
smi_modules
|
2009-09-21 00:19:07 +00:00
|
|
|
# text2pcap.html
|
|
|
|
# tshark.html
|
|
|
|
# wireshark-filter.html
|
|
|
|
# wireshark.html
|
|
|
|
# ws.css
|
|
|
|
)
|
|
|
|
|
2009-09-08 15:56:16 +00:00
|
|
|
set(LIBEPAN_LIBS
|
2009-09-08 07:03:57 +00:00
|
|
|
# $(wireshark_optional_objects)
|
2009-09-08 15:56:16 +00:00
|
|
|
epan
|
2009-09-08 07:03:57 +00:00
|
|
|
# @INET_PTON_LO@
|
|
|
|
# @INET_NTOP_LO@
|
|
|
|
# @SSL_LIBS@
|
|
|
|
# $(plugin_ldadd)
|
|
|
|
${PCRE_LIBRARIES}
|
|
|
|
${PCAP_LIBRARIES}
|
|
|
|
# @SOCKET_LIBS@
|
|
|
|
# @NSL_LIBS@
|
2009-09-09 13:20:33 +00:00
|
|
|
${CARES_LIBRARIES}
|
2009-09-08 07:03:57 +00:00
|
|
|
${ADNS_LIBRARIES}
|
2009-09-10 07:04:54 +00:00
|
|
|
${KERBEROS_LIBRARIES}
|
2009-09-08 07:03:57 +00:00
|
|
|
# @FRAMEWORKS@
|
2009-09-09 13:20:33 +00:00
|
|
|
${LUA_LIBRARIES}
|
2009-09-10 07:04:54 +00:00
|
|
|
${PYTHON_LIBRARIES}
|
|
|
|
${GEOIP_LIBRARIES}
|
2009-09-09 13:20:33 +00:00
|
|
|
${GCRYPT_LIBRARIES}
|
|
|
|
${GNUTLS_LIBRARIES}
|
|
|
|
${SMI_LIBRARIES}
|
|
|
|
${Z_LIBRARIES}
|
2009-09-10 07:04:54 +00:00
|
|
|
${M_LIBRARIES}
|
2009-09-08 07:03:57 +00:00
|
|
|
)
|
|
|
|
|
2009-08-29 09:13:28 +00:00
|
|
|
if(BUILD_wireshark)
|
2009-09-08 07:03:57 +00:00
|
|
|
set(wireshark_LIBS
|
2009-09-08 15:56:16 +00:00
|
|
|
ui
|
|
|
|
${GTK2_LIBRARIES}
|
2009-09-09 13:20:33 +00:00
|
|
|
codecs
|
2009-09-08 15:56:16 +00:00
|
|
|
${PORTAUDIO_LIBRARIES}
|
|
|
|
${LIBEPAN_LIBS}
|
2009-09-23 19:52:45 +00:00
|
|
|
${APPLE_CORE_SERVICES_LIBRARY}
|
|
|
|
${APPLE_COCOA_LIBRARY}
|
2009-09-08 07:03:57 +00:00
|
|
|
)
|
|
|
|
set(wireshark_FILES
|
|
|
|
airpcap_loader.c
|
|
|
|
alert_box.c
|
|
|
|
capture.c
|
|
|
|
capture_info.c
|
|
|
|
capture_opts.c
|
|
|
|
capture_sync.c
|
|
|
|
color_filters.c
|
|
|
|
file.c
|
|
|
|
fileset.c
|
|
|
|
filters.c
|
|
|
|
g711.c
|
|
|
|
merge.c
|
|
|
|
proto_hier_stats.c
|
|
|
|
summary.c
|
2009-09-08 15:56:16 +00:00
|
|
|
tempfile.c
|
2009-09-08 07:03:57 +00:00
|
|
|
${WIRESHARK_COMMON_SRC}
|
|
|
|
)
|
2009-09-08 15:56:16 +00:00
|
|
|
add_executable(wireshark ${wireshark_FILES})
|
|
|
|
target_link_libraries(wireshark ${wireshark_LIBS})
|
|
|
|
install(TARGETS wireshark RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
2009-08-27 16:11:16 +00:00
|
|
|
endif()
|
2009-06-16 05:37:46 +00:00
|
|
|
|
2009-08-29 09:13:28 +00:00
|
|
|
if(BUILD_tshark)
|
2009-09-08 07:03:57 +00:00
|
|
|
set(tshark_LIBS
|
2009-09-08 15:56:16 +00:00
|
|
|
${LIBEPAN_LIBS}
|
2009-09-23 19:52:45 +00:00
|
|
|
${APPLE_COCOA_LIBRARY}
|
2009-09-08 07:03:57 +00:00
|
|
|
)
|
|
|
|
set(tshark_FILES
|
|
|
|
capture_opts.c
|
|
|
|
capture_sync.c
|
|
|
|
tempfile.c
|
|
|
|
tshark-tap-register.c
|
|
|
|
tshark.c
|
|
|
|
${TSHARK_TAP_SRC}
|
|
|
|
${WIRESHARK_COMMON_SRC}
|
|
|
|
)
|
|
|
|
add_executable(tshark ${tshark_FILES})
|
|
|
|
target_link_libraries(tshark ${tshark_LIBS})
|
|
|
|
install(TARGETS tshark RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
2009-08-27 16:11:16 +00:00
|
|
|
endif()
|
2006-10-24 17:39:32 +00:00
|
|
|
|
2009-08-29 09:13:28 +00:00
|
|
|
if(BUILD_rawshark)
|
2009-09-08 07:03:57 +00:00
|
|
|
set(rawshark_LIBS
|
2009-09-08 15:56:16 +00:00
|
|
|
${LIBEPAN_LIBS}
|
2009-09-23 19:52:45 +00:00
|
|
|
${APPLE_COCOA_LIBRARY}
|
2009-09-08 07:03:57 +00:00
|
|
|
)
|
|
|
|
set(rawshark_FILES
|
|
|
|
${WIRESHARK_COMMON_SRC}
|
|
|
|
rawshark.c
|
|
|
|
)
|
|
|
|
add_executable(rawshark ${rawshark_FILES})
|
|
|
|
target_link_libraries(rawshark ${rawshark_LIBS})
|
|
|
|
install(TARGETS rawshark RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
2009-08-29 09:13:28 +00:00
|
|
|
endif()
|
|
|
|
|
2009-09-08 07:03:57 +00:00
|
|
|
if(BUILD_dftest)
|
|
|
|
set(dftest_LIBS
|
2009-09-08 15:56:16 +00:00
|
|
|
${LIBEPAN_LIBS}
|
2009-09-08 07:03:57 +00:00
|
|
|
)
|
|
|
|
set(dftest_FILES
|
|
|
|
dftest.c
|
|
|
|
util.c
|
|
|
|
)
|
|
|
|
add_executable(dftest ${dftest_FILES})
|
|
|
|
target_link_libraries(dftest ${dftest_LIBS})
|
|
|
|
install(TARGETS dftest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
2009-08-29 09:13:28 +00:00
|
|
|
endif()
|
|
|
|
|
2009-09-08 07:03:57 +00:00
|
|
|
if(BUILD_randpkt)
|
|
|
|
set(randpkt_LIBS
|
|
|
|
wiretap
|
2009-09-10 07:04:54 +00:00
|
|
|
${M_LIBRARIES}
|
2009-09-08 07:03:57 +00:00
|
|
|
${PCAP_LIBRARIES}
|
|
|
|
# @SOCKET_LIBS@
|
|
|
|
# @NSL_LIBS@
|
2009-09-09 13:20:33 +00:00
|
|
|
${CARES_LIBRARIES}
|
2009-09-08 07:03:57 +00:00
|
|
|
${ADNS_LIBRARIES}
|
2009-09-09 13:20:33 +00:00
|
|
|
${Z_LIBRARIES}
|
2009-09-08 07:03:57 +00:00
|
|
|
)
|
|
|
|
set(randpkt_FILES
|
|
|
|
randpkt.c
|
|
|
|
)
|
|
|
|
add_executable(randpkt ${randpkt_FILES})
|
|
|
|
target_link_libraries(randpkt ${randpkt_LIBS})
|
|
|
|
install(TARGETS randpkt RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
2009-08-27 16:11:16 +00:00
|
|
|
endif()
|
2009-06-16 05:37:46 +00:00
|
|
|
|
2009-06-16 05:52:16 +00:00
|
|
|
if(BUILD_text2pcap)
|
2009-09-02 16:33:01 +00:00
|
|
|
set(text2pcap_LIBS
|
|
|
|
wiretap
|
2009-09-10 07:04:54 +00:00
|
|
|
${M_LIBRARIES}
|
2009-09-09 13:20:33 +00:00
|
|
|
${Z_LIBRARIES}
|
2009-09-02 16:33:01 +00:00
|
|
|
)
|
|
|
|
set(text2pcap_FILES
|
|
|
|
text2pcap.c
|
|
|
|
)
|
|
|
|
add_lex_files(text2pcap_FILES
|
|
|
|
text2pcap-scanner.l
|
|
|
|
)
|
|
|
|
add_executable(text2pcap ${text2pcap_FILES})
|
|
|
|
target_link_libraries(text2pcap ${text2pcap_LIBS})
|
|
|
|
install(TARGETS text2pcap RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
2009-08-27 16:11:16 +00:00
|
|
|
endif()
|
2009-06-16 05:37:46 +00:00
|
|
|
|
2009-06-16 05:52:16 +00:00
|
|
|
if(BUILD_mergecap)
|
2009-09-02 16:33:01 +00:00
|
|
|
set(mergecap_LIBS
|
|
|
|
wiretap
|
2009-09-09 13:20:33 +00:00
|
|
|
${Z_LIBRARIES}
|
2009-09-02 16:33:01 +00:00
|
|
|
)
|
|
|
|
set(mergecap_FILES
|
|
|
|
mergecap.c
|
|
|
|
merge.c
|
|
|
|
svnversion.h
|
|
|
|
)
|
|
|
|
add_executable(mergecap ${mergecap_FILES})
|
|
|
|
target_link_libraries(mergecap ${mergecap_LIBS})
|
|
|
|
install(TARGETS mergecap RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
2009-08-27 16:11:16 +00:00
|
|
|
endif()
|
2009-06-16 05:37:46 +00:00
|
|
|
|
2009-06-16 05:52:16 +00:00
|
|
|
if(BUILD_capinfos)
|
2009-09-02 16:33:01 +00:00
|
|
|
set(capinfos_LIBS
|
|
|
|
wiretap
|
2009-09-09 13:20:33 +00:00
|
|
|
${Z_LIBRARIES}
|
2009-09-23 19:52:45 +00:00
|
|
|
${APPLE_COCOA_LIBRARY}
|
2009-09-02 16:33:01 +00:00
|
|
|
)
|
|
|
|
set(capinfos_FILES
|
|
|
|
capinfos.c
|
2009-09-15 12:22:13 +00:00
|
|
|
${WTAP_PLUGIN_SOURCES}
|
2009-09-02 16:33:01 +00:00
|
|
|
)
|
|
|
|
add_executable(capinfos ${capinfos_FILES})
|
|
|
|
target_link_libraries(capinfos ${capinfos_LIBS})
|
|
|
|
install(TARGETS capinfos RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
2009-08-27 16:11:16 +00:00
|
|
|
endif()
|
2009-06-16 05:37:46 +00:00
|
|
|
|
2009-06-16 05:52:16 +00:00
|
|
|
if(BUILD_editcap)
|
2009-09-02 16:33:01 +00:00
|
|
|
set(editcap_LIBS
|
|
|
|
wiretap
|
2009-09-09 13:20:33 +00:00
|
|
|
${Z_LIBRARIES}
|
2009-09-02 16:33:01 +00:00
|
|
|
)
|
|
|
|
set(editcap_FILES
|
|
|
|
editcap.c
|
|
|
|
epan/crypt/crypt-md5.c
|
|
|
|
epan/nstime.c
|
2009-09-15 12:22:13 +00:00
|
|
|
${WTAP_PLUGIN_SOURCES}
|
2009-09-02 16:33:01 +00:00
|
|
|
)
|
|
|
|
add_executable(editcap ${editcap_FILES})
|
|
|
|
target_link_libraries(editcap ${editcap_LIBS})
|
|
|
|
install(TARGETS editcap RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
2009-08-27 16:11:16 +00:00
|
|
|
endif()
|
2009-06-16 05:37:46 +00:00
|
|
|
|
2009-06-16 05:52:16 +00:00
|
|
|
if(BUILD_dumpcap)
|
2009-09-02 16:33:01 +00:00
|
|
|
set(dumpcap_LIBS
|
|
|
|
wiretap
|
2009-09-08 07:03:57 +00:00
|
|
|
# @INET_NTOP_LO@
|
2009-09-02 16:33:01 +00:00
|
|
|
${PCAP_LIBRARIES}
|
2009-09-12 17:20:08 +00:00
|
|
|
${CAP_LIBRARIES}
|
2009-09-08 07:03:57 +00:00
|
|
|
# @SOCKET_LIBS@
|
|
|
|
# @NSL_LIBS@
|
|
|
|
# @FRAMEWORKS@
|
2009-09-09 13:20:33 +00:00
|
|
|
${GCRYPT_LIBRARIES}
|
|
|
|
${GNUTLS_LIBRARIES}
|
|
|
|
${Z_LIBRARIES}
|
2009-09-23 19:52:45 +00:00
|
|
|
${APPLE_COCOA_LIBRARY}
|
2009-09-02 16:33:01 +00:00
|
|
|
)
|
|
|
|
set(dumpcap_FILES
|
|
|
|
svnversion.h
|
|
|
|
capture_opts.c
|
|
|
|
capture-pcap-util.c
|
|
|
|
capture_stop_conditions.c
|
|
|
|
clopts_common.c
|
|
|
|
conditions.c
|
|
|
|
dumpcap.c
|
|
|
|
pcapio.c
|
|
|
|
ringbuffer.c
|
|
|
|
sync_pipe_write.c
|
|
|
|
tempfile.c
|
|
|
|
version_info.c
|
|
|
|
${PLATFORM_SRC}
|
|
|
|
)
|
|
|
|
add_executable(dumpcap ${dumpcap_FILES})
|
|
|
|
target_link_libraries(dumpcap ${dumpcap_LIBS})
|
|
|
|
install(TARGETS dumpcap RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
2009-08-27 16:11:16 +00:00
|
|
|
endif()
|
2009-09-21 00:19:07 +00:00
|
|
|
|
2009-09-25 02:50:48 +00:00
|
|
|
ADD_CUSTOM_COMMAND(
|
|
|
|
OUTPUT AUTHORS-SHORT
|
|
|
|
COMMAND ${PERL}
|
|
|
|
${CMAKE_SOURCE_DIR}/doc/perlnoutf.pl
|
|
|
|
${CMAKE_SOURCE_DIR}/doc/make-authors-short.pl
|
|
|
|
< ${CMAKE_SOURCE_DIR}/AUTHORS
|
|
|
|
> AUTHORS-SHORT
|
|
|
|
DEPENDS
|
|
|
|
${CMAKE_SOURCE_DIR}/doc/perlnoutf.pl
|
|
|
|
${CMAKE_SOURCE_DIR}/doc/make-authors-short.pl
|
|
|
|
${CMAKE_SOURCE_DIR}/AUTHORS
|
|
|
|
)
|
|
|
|
|
|
|
|
add_custom_target(
|
|
|
|
auxiliary ALL
|
|
|
|
DEPENDS
|
|
|
|
AUTHORS-SHORT
|
|
|
|
# todo: Add manpages and onlinedocs and generate them
|
|
|
|
)
|
|
|
|
|
2009-09-21 00:19:07 +00:00
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
${INSTALL_FILES}
|
|
|
|
DESTINATION
|
|
|
|
${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
DIRECTORY
|
|
|
|
${INSTALL_DIRS}
|
2009-09-25 02:50:48 +00:00
|
|
|
DIRECTORY_PERMISSIONS
|
|
|
|
OWNER_EXECUTE OWNER_WRITE OWNER_READ
|
|
|
|
GROUP_EXECUTE GROUP_READ
|
|
|
|
WORLD_EXECUTE WORLD_READ
|
2009-09-21 00:19:07 +00:00
|
|
|
DESTINATION
|
|
|
|
${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}
|
|
|
|
PATTERN ".svn" EXCLUDE
|
|
|
|
PATTERN "Makefile.*" EXCLUDE
|
2009-09-23 04:41:14 +00:00
|
|
|
PATTERN "faq.py" EXCLUDE
|
2009-09-21 00:19:07 +00:00
|
|
|
)
|