# General modules
option ( BUILD_MOD_AO "Build AlwaysOnline STG module." ON )
+option ( BUILD_MOD_RADIUS "Build Radius STG module." ON )
option ( BUILD_MOD_IA "Buils InetAccess STG module." ON )
option ( BUILD_MOD_SGCONFIG "Build SGConfig STG module." ON )
option ( BUILD_MOD_PING "Build Ping STG module." ON )
option ( BUILD_MOD_CAP_PCAP "Build PCap capture STG module." OFF )
option ( BUILD_MOD_CAP_NFQUEUE "Build NFQueue capture STG module." OFF )
+# Firebird is getting deprecated, negation option
+option ( BUILD_NO_MOD_STORE_FIREBIRD "Do not build Firebird store STG module." OFF )
+
# Grouping
option ( BUILD_ALL_MODS "Build all modules." OFF )
option ( BUILD_ALL_LIBS "Build all libraries." OFF )
option ( BUILD_ALL "Build binaries, libraries and tests." OFF )
option ( ENABLE_COVERAGE "Enable code coverage analysis." OFF )
+# CPPCheck-related
+option ( CPPCHECK_FOREIGN "Run cppcheck over foreign lib code" OFF )
+
if ( BUILD_ALL )
set ( BUILD_ALL_MODS ON )
set ( BUILD_ALL_LIBS ON )
set ( BUILD_MOD_CAP_PCAP ON )
endif ( BUILD_ALL_MODS )
+if ( BUILD_NO_MOD_STORE_FIREBIRD )
+ set ( BUILD_MOD_STORE_FIREBIRD OFF )
+endif ( BUILD_NO_MOD_STORE_FIREBIRD )
+
if ( BUILD_MOD_STORE_FIREBIRD OR BUILD_ALL_LIBS )
set ( BUILD_LIB_IBPP ON )
endif ( BUILD_MOD_STORE_FIREBIRD OR BUILD_ALL_LIBS )
message( STATUS "clang-tidy not found." )
else ()
message( STATUS "clang-tidy found: ${CLANG_TIDY_EXE}" )
- set( DO_CLANG_TIDY "${CLANG_TIDY_EXE}"
- "-checks=-*,\
-clang-analyzer-*,\
-misc-*,\
-modernize-*,\
-performance-*,\
-portability-*,\
-readability-*,\
-bugprone-*,\
--modernize-avoid-bind,\
--modernize-use-trailing-return-type,\
--readability-braces-around-statements, \
--readability-magic-numbers, \
--readability-identifier-length, \
--bugprone-easily-swappable-parameters" )
+ set( DO_CLANG_TIDY "${CLANG_TIDY_EXE}" )
endif ()
endif ()
enable_language (CXX)
set (CMAKE_CXX_STANDARD 17)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W -Wall -Wextra -Wshadow -Wno-long-long -Wold-style-cast -Wstrict-aliasing -pedantic")
+set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG")
if ( CMAKE_COMPILER_IS_GNUCC )
# GCC-specific