X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7ef8de40e0bcdd931f5a400fd586fee3a1aaaeea..46d0fa38003ef0b122fea77dfaa252fa832cb5a3:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index e887fc58..a72d3e57 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,7 @@ option ( BUILD_SGAUTH "Build SGAuth client." OFF ) # 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 ) @@ -117,21 +118,7 @@ if ( TIDY ) 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 () @@ -148,6 +135,7 @@ 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