X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/2196a3a0cdc5384c082febb7f4aa5994cc7d80db..296c906e2689b9b5dc26d2f2d3e1e2d9e1662d3b:/projects/stargazer/plugins/CMakeLists.txt diff --git a/projects/stargazer/plugins/CMakeLists.txt b/projects/stargazer/plugins/CMakeLists.txt index fc378ba6..a53349ea 100644 --- a/projects/stargazer/plugins/CMakeLists.txt +++ b/projects/stargazer/plugins/CMakeLists.txt @@ -11,6 +11,39 @@ if ( BUILD_MOD_AO ) endif () endif ( BUILD_MOD_AO ) +if ( BUILD_MOD_RADIUS ) + find_package ( Boost REQUIRED ) + + add_library ( mod_radius MODULE other/radius/radius.cpp ) + target_link_libraries ( mod_radius PRIVATE scriptexecuter logger common ) + set_target_properties ( mod_radius PROPERTIES PREFIX "" ) + + include ( ExternalProject ) + + ExternalProject_Add ( async-radius + GIT_REPOSITORY https://github.com/madf/async-radius.git + GIT_TAG 1.1.0 + GIT_SHALLOW true + INSTALL_COMMAND "" + CMAKE_ARGS -DCMAKE_CXX_FLAGS=-fPIC ) + + ExternalProject_Get_property ( async-radius SOURCE_DIR BINARY_DIR ) + + target_include_directories ( mod_radius PRIVATE "${SOURCE_DIR}/include" ) + target_link_directories ( mod_radius PRIVATE "${BINARY_DIR}/src" ) + + add_dependencies ( mod_radius async-radius ) + + target_link_libraries ( mod_radius PRIVATE radproto Boost::boost ) + + if ( CLANG_TIDY_EXE ) + set_target_properties ( mod_radius PROPERTIES CXX_CLANG_TIDY "${DO_CLANG_TIDY}" ) + endif () + if ( INCLUDE_WHAT_YOU_USE_EXE ) + set_target_properties ( mod_radius PROPERTIES CXX_INCLUDE_WHAT_YOU_USE "${DO_INCLUDE_WHAT_YOU_USE}" ) + endif () +endif ( BUILD_MOD_RADIUS ) + if ( BUILD_MOD_IA ) add_library ( mod_auth_ia MODULE authorization/inetaccess/inetaccess.cpp ) target_link_libraries ( mod_auth_ia scriptexecuter crypto logger common )