aboutsummaryrefslogtreecommitdiffstats
path: root/pam/CMakeLists.txt
blob: 5d2de635fb7245e5fd9eaa51e2b920b98697d3a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
# Add PAM dependency
# FIXME: Require PAM, but it's seems there is no find_package.
set(PAM_INCLUDE_DIR "/usr/include/")
set(PAM_LIB "/lib64/libpam.so.0")
include_directories(${PAM_INCLUDE_DIR})

# Add the target
add_library(agl-identity-usbstick-pam SHARED agl-identity-usbstick-pam.c)
target_link_libraries(agl-identity-usbstick-pam ${PAM_LIB})
set_property(TARGET agl-identity-usbstick-pam PROPERTY POSITION_IDENPENDENT_CODE ON)