5d2de635fb7245e5fd9eaa51e2b920b98697d3a9
[apps/agl-service-data-persistence.git] / pam / CMakeLists.txt
1
2 # Add PAM dependency
3 # FIXME: Require PAM, but it's seems there is no find_package.
4 set(PAM_INCLUDE_DIR "/usr/include/")
5 set(PAM_LIB "/lib64/libpam.so.0")
6 include_directories(${PAM_INCLUDE_DIR})
7
8 # Add the target
9 add_library(agl-identity-usbstick-pam SHARED agl-identity-usbstick-pam.c)
10 target_link_libraries(agl-identity-usbstick-pam ${PAM_LIB})
11 set_property(TARGET agl-identity-usbstick-pam PROPERTY POSITION_IDENPENDENT_CODE ON)