cmake: display configure flags in summary

This commit is contained in:
Kaian 2019-04-08 21:44:34 +02:00
parent 2582d57465
commit 0556a7dfc4
2 changed files with 16 additions and 19 deletions

View File

@ -18,10 +18,12 @@ endif ()
include(GNUInstallDirs)
include_directories(${CMAKE_SOURCE_DIR}/src)
include_directories(${CMAKE_SOURCE_DIR}/src/glib)
include_directories(${CMAKE_SOURCE_DIR}/src/ncurses)
include_directories(${CMAKE_SOURCE_DIR}/src/ncurses/windows)
include_directories(${CMAKE_SOURCE_DIR}/src/capture/)
include_directories(${CMAKE_SOURCE_DIR}/src/capture/packet)
include_directories(${CMAKE_SOURCE_DIR}/src/capture/dissectors)
include_directories(${CMAKE_SOURCE_DIR}/src/capture/codecs)
set(SOURCES
src/capture/address.c
@ -80,7 +82,7 @@ endif (USE_HEP)
option(USE_IPV6 "Enable IPv6 Support" ON)
# GnuTLS Support
option(WITH_SSL "Enable SSL Support (TLS SIP Transport)" OFF)
option(WITH_SSL "Enable SSL Support (TLS SIP Transport)" ON)
if (WITH_SSL)
set(SOURCES ${SOURCES} src/capture/dissectors/packet_tls.c)
endif (WITH_SSL)
@ -181,11 +183,11 @@ endif (DISPLAY_LOGO)
message(" ")
message(" sngrep configure finished ")
message(" ====================================================== ")
message(" SND Support : ${WITH_SND} ")
message(" SSL Support : ${WITH_SSL} ")
message(" Pulseaudio Support : ${WITH_PULSE} ")
message(" g729 Support : ${WITH_G729} ")
message(" HEP Support : ${USE_HEP} ")
message(" IPv6 Support : ${USE_IPV6} ")
message(" SND Support (WITH_SND) : ${WITH_SND} ")
message(" SSL Support (WITH_SSL) : ${WITH_SSL} ")
message(" Pulseaudio Support (WITH_PULSE) : ${WITH_PULSE} ")
message(" g729 Support (WITH_G729) : ${WITH_G729} ")
message(" HEP Support (USE_HEP) : ${USE_HEP} ")
message(" IPv6 Support (USE_IPV6) : ${USE_IPV6} ")
message(" ====================================================== ")
message(" ")

View File

@ -25,22 +25,17 @@
#define PACKAGE "@PROJECT_NAME@"
#define VERSION "@PROJECT_VERSION@"
#cmakedefine PROJECT_NAME
#cmakedefine PROJECT_VERSION
#cmakedefine PROJECT_VERSION_MAJOR
#cmakedefine PROJECT_VERSION_MINOR
#cmakedefine PROJECT_VERSION_PATCH
/** Defined if HEP support is enabled **/
#cmakedefine USE_HEP
/** Defined if IPv6 support is enabled **/
#cmakedefine USE_IPV6
/** Defined if TLS packet support is enabled **/
#cmakedefine WITH_SSL
/** Defined if Save to WAV support is enabled **/
#cmakedefine WITH_SND
/** Defined if RTP Playback support is enabled **/
#cmakedefine WITH_PULSE
/** Defined if G729A decode support is enabled **/
#cmakedefine WITH_G729
#endif