Merge pull request #19 in FKIEA/oonf-os from develop to master
[oonf.git] / src / generic / dlep / CMakeLists.txt
1 # set source files
2 SET (radio_only_source  ext_base_proto/proto_radio.c
3                         radio/dlep_radio.c
4                         radio/dlep_radio_interface.c
5                         radio/dlep_radio_session.c) 
6 SET (router_only_source ext_base_proto/proto_router.c
7                         router/dlep_router.c
8                         router/dlep_router_interface.c
9                         router/dlep_router_session.c)
10 SET (common_source      ext_base_metric/metric.c
11                         ext_base_ip/ip.c
12                         ext_base_proto/proto.c
13                         ext_l1_statistics/l1_statistics.c
14                         ext_l2_statistics/l2_statistics.c
15                         ext_radio_attributes/radio_attributes.c
16                         ext_lid/lid.c
17                         dlep_extension.c
18                         dlep_interface.c
19                         dlep_session.c
20                         dlep_reader.c
21                         dlep_writer.c)
22
23 # sources/includes for dlep_radio                    
24 SET (radio_source       ${common_source}
25                         ${radio_only_source})
26 SET (radio_include      radio/dlep_radio.h)
27
28 # sources/includes for dlep_router
29 SET (router_source      ${common_source}
30                         ${router_only_source})
31 SET (router_include router/dlep_router.h)
32
33 # sources/includes for dlep_proxy
34 SET (proxy_source       ${common_source}
35                         ${radio_only_source}
36                         ${router_only_source})
37 SET (proxy_include      ${radio_include}
38                         ${router_include})
39
40 # use generic plugin maker for dlep-radio
41 oonf_create_plugin("dlep_radio" "${radio_source}" "${radio_include}" "")
42
43 # use generic plugin maker for dlep-router
44 oonf_create_plugin("dlep_router" "${router_source}" "${router_include}" "")
45
46 # combined radio/router plugin
47 oonf_create_plugin("dlep_proxy" "${proxy_source}" "${proxy_include}" "")