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
|
|
|
|
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-result -Wno-reserved-id-macro")
|
|
|
|
|
|
|
|
configure_file(includes.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/includes.h)
|
|
|
|
add_library(readpassphrase ${CMAKE_CURRENT_SOURCE_DIR}/readpassphrase.c)
|
2019-12-15 06:34:43 +00:00
|
|
|
set_target_properties(readpassphrase
|
|
|
|
PROPERTIES LINKER_LANGUAGE C
|
|
|
|
)
|
2019-06-03 00:57:33 +00:00
|
|
|
# . to allow #include <readpassphrase.h>
|
2020-01-17 18:55:45 +00:00
|
|
|
target_include_directories(readpassphrase PUBLIC . ${CMAKE_CURRENT_BINARY_DIR}/include)
|