Add "optional static plugins" target to app description to make olsrd2 compile withou...
[oonf.git] / src / olsrd2 / CMakeLists.txt
1 ###########################################
2 #### Default Application configuration ####
3 ###########################################
4
5 # set name of program the executable and library prefix
6 set (OONF_APP OLSRd2)
7 set (OONF_EXE olsrd2)
8
9 # setup custom text before and after default help message
10 set (OONF_HELP_PREFIX "OLSRv2 routing agent\\n")
11 set (OONF_HELP_SUFFIX "Visit http://www.olsr.org\\n")
12
13 # setup custom text after version string
14 set (OONF_VERSION_TRAILER "Visit http://www.olsr.org\\n")
15
16 # set to true to stop application running without root privileges (true/false)
17 set (OONF_NEED_ROOT true)
18
19 # set to true to require a lock for the application to run
20 set (OONF_NEED_LOCK true)
21
22 # name of default configuration handler
23 set (OONF_APP_DEFAULT_CFG_HANDLER Compact)
24
25 #################################
26 ####  set static subsystems  ####
27 #################################
28
29 IF (NOT OONF_STATIC_PLUGINS)
30     set (OONF_STATIC_PLUGINS class
31                              clock
32                              duplicate_set
33                              interface
34                              layer2
35                              packet_socket
36                              rfc5444
37                              socket
38                              stream_socket
39                              telnet
40                              timer
41                              viewer
42                              os_clock
43                              os_socket
44                              os_interface
45                              os_routing
46                              os_system
47                              cfg_compact
48                              layer2info
49                              systeminfo
50                              nhdp
51                              ff_dat_metric
52                              link_config
53                              neighbor_probing
54                              nhdpinfo
55                              olsrv2
56                              olsrv2info
57                              netjsoninfo
58                              lan_import
59                              http
60                              )
61 ENDIF (NOT OONF_STATIC_PLUGINS)
62
63
64 IF (NOT OONF_OPTIONAL_STATIC_PLUGINS)
65     set (OONF_OPTIONAL_STATIC_PLUGINS nl80211_listener)
66 ENDIF (NOT OONF_OPTIONAL_STATIC_PLUGINS)
67
68 ##################################
69 #### link framework libraries ####
70 ##################################
71
72 include(../../cmake/link_app.cmake)
73 oonf_create_app("${OONF_EXE}" "${OONF_STATIC_PLUGINS}" "${OONF_OPTIONAL_STATIC_PLUGINS}")