2023-02-08 11:04:11 +00:00
|
|
|
if (USE_CLANG_TIDY)
|
|
|
|
set (CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_PATH}")
|
|
|
|
endif ()
|
|
|
|
|
2019-06-03 00:57:33 +00:00
|
|
|
# wget https://raw.githubusercontent.com/openssh/openssh-portable/master/openbsd-compat/readpassphrase.c
|
|
|
|
# wget https://raw.githubusercontent.com/openssh/openssh-portable/master/openbsd-compat/readpassphrase.h
|
|
|
|
|
2020-05-27 21:58:46 +00:00
|
|
|
add_library(readpassphrase readpassphrase.c)
|
2019-06-03 00:57:33 +00:00
|
|
|
|
2020-05-27 21:58:46 +00:00
|
|
|
set_target_properties(readpassphrase PROPERTIES LINKER_LANGUAGE C)
|
2021-03-10 15:05:24 +00:00
|
|
|
target_compile_options(readpassphrase PRIVATE -Wno-unused-result -Wno-reserved-id-macro -Wno-disabled-macro-expansion)
|
2020-08-08 18:38:34 +00:00
|
|
|
target_include_directories(readpassphrase PUBLIC .)
|