forked from ValdikSS/openvpn-radiusplugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
34 lines (27 loc) · 858 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
cmake_minimum_required (VERSION 3.0)
project( radiusplugin )
set (CMAKE_CXX_STANDARD 11)
file(GLOB OBJECTS
RadiusClass/RadiusAttribute.cpp
RadiusClass/RadiusPacket.cpp
RadiusClass/RadiusConfig.cpp
RadiusClass/RadiusServer.cpp
RadiusClass/RadiusVendorSpecificAttribute.cpp
AccountingProcess.cpp
Exception.cpp
PluginContext.cpp
UserAuth.cpp
AcctScheduler.cpp
IpcSocket.cpp
radiusplugin.cpp
User.cpp
AuthenticationProcess.cpp
main.cpp
UserAcct.cpp
UserPlugin.cpp
Config.cpp)
add_library(plugin SHARED ${OBJECTS})
target_link_libraries(plugin gcrypt pthread)
set_target_properties(plugin PROPERTIES PREFIX "" SUFFIX ".so")
add_executable(test-plugin ${OBJECTS})
target_link_libraries(test-plugin gcrypt pthread)