summaryrefslogtreecommitdiff
path: root/plugins/ssh/CMakeLists.txt
blob: 9c656b89ce8ca818e1eadb1c0fcf7f32e8d1b462 (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
add_library(hybbx_plugin_ssh STATIC
    ssh.c
    ssh_config.c
    ssh_keys.c
)

find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBSSH REQUIRED IMPORTED_TARGET libssh)

find_package(Threads REQUIRED)

target_include_directories(hybbx_plugin_ssh
    PRIVATE ${CMAKE_SOURCE_DIR}/include
)

target_compile_definitions(hybbx_plugin_ssh
    PRIVATE HYBBX_PLUGIN_BUILD
)

target_link_libraries(hybbx_plugin_ssh
    PRIVATE
        hybbx_core
        Threads::Threads
        PkgConfig::LIBSSH
)

hybbx_link_plugin_instances(hybbx_plugin_ssh HYBBX_HAVE_PLUGIN_SSH)
hybbx_apply_hardening(hybbx_plugin_ssh)

if(HYBBX_INSTALL_DEV)
install(TARGETS hybbx_plugin_ssh
    ARCHIVE DESTINATION ${HYBBX_PLUGIN_INSTALL_DIR}
    LIBRARY DESTINATION ${HYBBX_PLUGIN_INSTALL_DIR}
)
endif()
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com