44 lines
790 B
CMake
44 lines
790 B
CMake
add_library(rublon-ssh-pam
|
|
SHARED
|
|
pam.cpp
|
|
)
|
|
|
|
set_target_properties(rublon-ssh-pam PROPERTIES PREFIX "")
|
|
set_target_properties(rublon-ssh-pam PROPERTIES OUTPUT_NAME "pam_rublon")
|
|
|
|
target_compile_options(rublon-ssh-pam
|
|
PUBLIC
|
|
-fwhole-program
|
|
-fvisibility=hidden
|
|
-ffunction-sections
|
|
-fdata-sections
|
|
-fno-unwind-tables
|
|
-fno-asynchronous-unwind-tables
|
|
-flto
|
|
)
|
|
|
|
target_link_options(rublon-ssh-pam
|
|
PUBLIC
|
|
-fpic
|
|
-s
|
|
-Wl,--gc-sections
|
|
-flto
|
|
)
|
|
|
|
target_link_libraries(rublon-ssh-pam
|
|
PUBLIC
|
|
rublon-ssh
|
|
-lcurl
|
|
-lssl
|
|
-lcrypto
|
|
)
|
|
|
|
install(
|
|
TARGETS
|
|
rublon-ssh-pam
|
|
DESTINATION
|
|
/usr/lib/x86_64-linux-gnu/security/
|
|
COMPONENT
|
|
PAM
|
|
)
|