summaryrefslogtreecommitdiff
path: root/plugins/CMakeLists.txt
blob: 973630233e40ba640fdf070dc47b17845c911c1c (plain)
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
35
36
37
38
39
40
41
42
43
44
# Link a transport plugin into all HyBBX instance binaries (hybbxd/hybbxsd/hybbxpd).
function(hybbx_link_plugin_instances plugin_target define_name)
    foreach(_bin IN ITEMS hybbxd hybbxsd hybbxpd)
        if(TARGET ${_bin})
            target_link_libraries(${_bin} PRIVATE ${plugin_target})
            if(NOT "${define_name}" STREQUAL "")
                target_compile_definitions(${_bin} PRIVATE ${define_name})
            endif()
        endif()
    endforeach()
endfunction()

if(HYBBX_PLUGIN_TELNET)
    add_subdirectory(telnet)
endif()

if(HYBBX_PLUGIN_PACKET_RADIO)
    add_subdirectory(packet_radio)
endif()

if(HYBBX_PLUGIN_ARDOP OR HYBBX_PLUGIN_CRDOP)
    add_subdirectory(ardop)
endif()

if(HYBBX_PLUGIN_CRDOP)
    add_subdirectory(crdop)
endif()

if(HYBBX_PLUGIN_BAYCOM)
    add_subdirectory(baycom)
endif()

if(HYBBX_PLUGIN_MAINS_PROXY)
    add_subdirectory(mains_proxy)
    target_compile_definitions(hybbx_core PRIVATE HYBBX_HAVE_PLUGIN_MAINS_PROXY)
endif()

if(HYBBX_PLUGIN_SSH AND HYBBX_HAVE_LIBSSH)
    add_subdirectory(ssh)
endif()

if(HYBBX_PLUGIN_WEBSOCKET)
    add_subdirectory(websocket)
endif()
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com