32 lines
540 B
CMake
32 lines
540 B
CMake
add_library(rublon-ssh-pam
|
|
SHARED
|
|
pam.cpp
|
|
)
|
|
|
|
target_compile_options(rublon-ssh-pam
|
|
PUBLIC
|
|
-fno-exceptions
|
|
-fno-rtti
|
|
-fvisibility=hidden
|
|
-ffunction-sections
|
|
-fdata-sections
|
|
-fno-unwind-tables
|
|
-fno-asynchronous-unwind-tables
|
|
)
|
|
|
|
target_link_options(rublon-ssh-pam
|
|
PUBLIC
|
|
-fpic
|
|
-s
|
|
# -static-libstdc++
|
|
-Wl,--gc-sections
|
|
)
|
|
|
|
target_link_libraries(rublon-ssh-pam
|
|
PUBLIC
|
|
rublon-ssh
|
|
-lcurl
|
|
-lssl
|
|
-lcrypto
|
|
)
|