Add "optional static plugins" target to app description to make olsrd2 compile withou...
[oonf.git] / src / dlep-radio / CMakeLists.txt
1 ###########################################
2 #### Default Application configuration ####
3 ###########################################
4
5 # set name of program the executable and library prefix
6 set (OONF_APP "DLEP Radio")
7 set (OONF_EXE dlep_radio)
8
9 # setup custom text before and after default help message
10 set (OONF_HELP_PREFIX "DLEP Radio daemon\\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                              interface
33                              layer2
34                              packet_socket
35                              socket
36                              stream_socket
37                              telnet
38                              timer
39                              viewer
40                              os_clock
41                              os_socket
42                              os_interface
43                              os_system
44                              cfg_compact
45                              layer2info
46                              systeminfo
47                              dlep_radio
48                              )
49 ENDIF (NOT OONF_STATIC_PLUGINS)
50
51 IF (NOT OONF_OPTIONAL_STATIC_PLUGINS)
52     set (OONF_OPTIONAL_STATIC_PLUGINS nl80211_listener)
53 ENDIF (NOT OONF_OPTIONAL_STATIC_PLUGINS)
54
55 ##################################
56 #### link framework libraries ####
57 ##################################
58
59 include(../../cmake/link_app.cmake)
60 oonf_create_app("${OONF_EXE}" "${OONF_STATIC_PLUGINS}" "${OONF_OPTIONAL_STATIC_PLUGINS}")