26 lines
464 B
CMake
26 lines
464 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(git_ssh_gateway C)
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
|
set(CMAKE_C_EXTENSIONS OFF)
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
pkg_check_modules(LIBSSH REQUIRED IMPORTED_TARGET libssh)
|
|
|
|
add_executable(git-ssh-gateway
|
|
src/git_ssh_gateway.c
|
|
)
|
|
|
|
target_compile_options(git-ssh-gateway PRIVATE
|
|
-Wall
|
|
-Wextra
|
|
-Wpedantic
|
|
)
|
|
|
|
target_link_libraries(git-ssh-gateway PRIVATE
|
|
PkgConfig::LIBSSH
|
|
)
|
|
|