mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Add cmake environment
This commit is contained in:
1 parent
237fa15e36
commit
2e534c7794
29 files changed
+908
-41
No files matched your search
@@ -0,0 +1,19 @@
|
||||
# PamAuth - requires PAM
|
||||
|
||||
if(NOT PAM_FOUND)
|
||||
message(STATUS "PamAuth requires PAM, skipping")
|
||||
return()
|
||||
endif()
|
||||
|
||||
add_3proxy_plugin(PamAuth
|
||||
SOURCES pamauth.c
|
||||
)
|
||||
|
||||
if(TARGET PAM::PAM)
|
||||
target_link_libraries(PamAuth PRIVATE PAM::PAM)
|
||||
else()
|
||||
target_link_libraries(PamAuth PRIVATE ${PAM_LIBRARIES})
|
||||
if(PAM_INCLUDE_DIRS)
|
||||
target_include_directories(PamAuth PRIVATE ${PAM_INCLUDE_DIRS})
|
||||
endif()
|
||||
endif()
|
||||
Reference in new issue
Block a user