2 add_library ( mod_auth_ao MODULE authorization/ao/ao.cpp )
3 target_link_libraries ( mod_auth_ao scriptexecuter logger common )
4 set_target_properties ( mod_auth_ao PROPERTIES PREFIX "" )
8 add_library ( mod_auth_ia MODULE authorization/inetaccess/inetaccess.cpp )
9 target_link_libraries ( mod_auth_ia scriptexecuter crypto logger common )
10 set_target_properties ( mod_auth_ia PROPERTIES PREFIX "" )
11 endif ( BUILD_MOD_IA )
13 if ( BUILD_MOD_CAP_NF )
14 add_library ( mod_cap_nf MODULE capture/cap_nf/cap_nf.cpp )
15 target_link_libraries ( mod_cap_nf logger common )
16 set_target_properties ( mod_cap_nf PROPERTIES PREFIX "" )
17 endif ( BUILD_MOD_CAP_NF )
19 if ( BUILD_MOD_CAP_DIVERT )
20 add_library ( mod_cap_divert MODULE capture/divert_freebsd/divert_cap.cpp )
21 target_link_libraries ( mod_cap_divert logger common )
22 set_target_properties ( mod_cap_divert PROPERTIES PREFIX "" )
23 endif ( BUILD_MOD_CAP_DIVERT )
25 if ( BUILD_MOD_CAP_ETHER_FREEBSD )
26 add_library ( mod_cap_bpf MODULE capture/ether_freebsd/ether_cap.cpp )
27 target_link_libraries ( mod_cap_bpf logger common )
28 set_target_properties ( mod_cap_bpf PROPERTIES PREFIX "" )
29 endif ( BUILD_MOD_CAP_ETHER_FREEBSD )
31 if ( BUILD_MOD_CAP_ETHER_LINUX )
32 add_library ( mod_cap_ether MODULE capture/ether_linux/ether_cap.cpp )
33 target_link_libraries ( mod_cap_ether logger common )
34 set_target_properties ( mod_cap_ether PROPERTIES PREFIX "" )
35 endif ( BUILD_MOD_CAP_ETHER_LINUX )
37 if ( BUILD_MOD_CAP_PCAP )
38 find_package ( PCap REQUIRED )
39 add_library ( mod_cap_pcap MODULE capture/pcap/pcap_cap.cpp )
40 target_link_libraries ( mod_cap_pcap logger common PCap::PCap )
41 set_target_properties ( mod_cap_pcap PROPERTIES PREFIX "" )
42 endif ( BUILD_MOD_CAP_PCAP )
44 if ( BUILD_MOD_CAP_NFQUEUE )
45 find_package ( NFQueue REQUIRED )
46 find_package ( NFNetLink REQUIRED )
47 find_package ( MNL REQUIRED )
48 add_library ( mod_cap_nfqueue MODULE capture/nfqueue/nfqueue.cpp )
49 target_link_libraries ( mod_cap_nfqueue logger common NF::Queue NF::NetLink MNL::MNL )
50 set_target_properties ( mod_cap_nfqueue PROPERTIES PREFIX "" )
51 endif ( BUILD_MOD_CAP_NFQUEUE )
53 if ( BUILD_MOD_SGCONFIG )
54 find_package ( EXPAT REQUIRED )
55 add_library ( mod_conf_sg MODULE configuration/sgconfig/stgconfig.cpp
56 configuration/sgconfig/conn.cpp
57 configuration/sgconfig/configproto.cpp
58 configuration/sgconfig/parser.cpp
59 configuration/sgconfig/parser_tariffs.cpp
60 configuration/sgconfig/parser_admins.cpp
61 configuration/sgconfig/parser_users.cpp
62 configuration/sgconfig/parser_services.cpp
63 configuration/sgconfig/parser_message.cpp
64 configuration/sgconfig/parser_auth_by.cpp
65 configuration/sgconfig/parser_user_info.cpp
66 configuration/sgconfig/parser_server_info.cpp )
67 target_link_libraries ( mod_conf_sg scriptexecuter crypto logger common EXPAT::EXPAT )
68 set_target_properties ( mod_conf_sg PROPERTIES PREFIX "" )
69 endif ( BUILD_MOD_SGCONFIG )
71 if ( BUILD_MOD_RPCCONFIG )
72 find_package ( XMLRPC REQUIRED c++ abyss-server )
73 add_library ( mod_conf_rpc MODULE configuration/rpcconfig/rpcconfig.cpp
74 configuration/rpcconfig/user_helper.cpp
75 configuration/rpcconfig/tariff_helper.cpp
76 configuration/rpcconfig/info_methods.cpp
77 configuration/rpcconfig/users_methods.cpp
78 configuration/rpcconfig/tariffs_methods.cpp
79 configuration/rpcconfig/admins_methods.cpp
80 configuration/rpcconfig/messages_methods.cpp )
81 target_link_libraries ( mod_conf_rpc scriptexecuter logger common xmlrpc_server_abyss++ )
82 set_target_properties ( mod_conf_rpc PROPERTIES PREFIX "" )
83 endif ( BUILD_MOD_RPCCONFIG )
86 add_library ( mod_ping MODULE other/ping/ping.cpp )
87 target_link_libraries ( mod_ping scriptexecuter logger pinger common )
88 set_target_properties ( mod_ping PROPERTIES PREFIX "" )
89 endif ( BUILD_MOD_PING )
91 if ( BUILD_MOD_RADIUS )
92 find_package ( YAJL REQUIRED )
93 add_library ( mod_radius MODULE other/radius/radius.cpp
94 other/radius/config.cpp
95 other/radius/conn.cpp )
96 target_link_libraries ( mod_radius logger json common YAJL::YAJL )
97 set_target_properties ( mod_radius PROPERTIES PREFIX "" )
98 endif ( BUILD_MOD_RADIUS )
100 if ( BUILD_MOD_RSCRYPT )
101 add_library ( mod_remote_script MODULE other/rscript/rscript.cpp other/rscript/nrmap_parser.cpp )
102 target_link_libraries ( mod_remote_script crypto scriptexecuter logger common )
103 set_target_properties ( mod_remote_script PROPERTIES PREFIX "" )
104 endif ( BUILD_MOD_RSCRYPT )
106 if ( BUILD_MOD_SMUX )
107 add_library ( mod_smux MODULE other/smux/smux.cpp
108 other/smux/sensors.cpp
109 other/smux/tables.cpp
110 other/smux/handlers.cpp
112 other/smux/types.cpp )
113 target_link_libraries ( mod_smux scriptexecuter logger smux common )
114 set_target_properties ( mod_smux PROPERTIES PREFIX "" )
115 endif ( BUILD_MOD_SMUX )
117 if ( BUILD_MOD_STORE_FILES )
118 add_library ( mod_store_files MODULE store/files/file_store.cpp )
119 target_link_libraries ( mod_store_files crypto conffiles logger common )
120 set_target_properties ( mod_store_files PROPERTIES PREFIX "" )
121 endif ( BUILD_MOD_STORE_FILES )
123 if ( BUILD_MOD_STORE_FIREBIRD )
124 find_package ( FBClient REQUIRED )
125 add_library ( mod_store_firebird MODULE store/firebird/firebird_store.cpp
126 store/firebird/firebird_store_admins.cpp
127 store/firebird/firebird_store_corporations.cpp
128 store/firebird/firebird_store_messages.cpp
129 store/firebird/firebird_store_services.cpp
130 store/firebird/firebird_store_tariffs.cpp
131 store/firebird/firebird_store_users.cpp
132 store/firebird/firebird_store_utils.cpp )
133 target_link_libraries ( mod_store_firebird crypto common logger ibpp FBClient::FBClient )
134 set_target_properties ( mod_store_firebird PROPERTIES PREFIX "" )
135 endif ( BUILD_MOD_STORE_FIREBIRD )
137 if ( BUILD_MOD_STORE_MYSQL )
138 find_package ( MySQLConnector REQUIRED )
139 add_library ( mod_store_mysql MODULE store/mysql/mysql_store.cpp )
140 target_link_libraries ( mod_store_mysql crypto logger common MySQL::Connector )
141 set_target_properties ( mod_store_mysql PROPERTIES PREFIX "" )
142 endif ( BUILD_MOD_STORE_MYSQL )
144 if ( BUILD_MOD_STORE_POSTGRESQL )
145 find_package ( PostgreSQL REQUIRED )
146 add_library ( mod_store_postgresql MODULE store/postgresql/postgresql_store.cpp
147 store/postgresql/postgresql_store_admins.cpp
148 store/postgresql/postgresql_store_corporations.cpp
149 store/postgresql/postgresql_store_messages.cpp
150 store/postgresql/postgresql_store_services.cpp
151 store/postgresql/postgresql_store_tariffs.cpp
152 store/postgresql/postgresql_store_users.cpp
153 store/postgresql/postgresql_store_utils.cpp )
154 target_link_libraries ( mod_store_postgresql crypto logger common PostgreSQL::PostgreSQL )
155 set_target_properties ( mod_store_postgresql PROPERTIES PREFIX "" )
156 endif ( BUILD_MOD_STORE_POSTGRESQL )