memgraph/src/auth/CMakeLists.txt

30 lines
1.0 KiB
CMake
Raw Normal View History

set(auth_src_files
auth.cpp
crypto.cpp
models.cpp
module.cpp)
find_package(Seccomp REQUIRED)
2022-01-21 17:22:36 +08:00
find_package(fmt REQUIRED)
find_package(gflags REQUIRED)
add_library(mg-auth STATIC ${auth_src_files})
2021-12-07 18:05:33 +08:00
target_link_libraries(mg-auth json libbcrypt gflags fmt::fmt)
2022-02-17 17:35:48 +08:00
target_link_libraries(mg-auth mg-utils mg-kvstore mg-license )
target_link_libraries(mg-auth ${Seccomp_LIBRARIES})
target_include_directories(mg-auth SYSTEM PRIVATE ${Seccomp_INCLUDE_DIRS})
2023-04-03 22:29:21 +08:00
find_package(OpenSSL REQUIRED)
target_link_libraries(mg-auth ${OPENSSL_LIBRARIES})
target_include_directories(mg-auth SYSTEM PUBLIC ${OPENSSL_INCLUDE_DIR})
# Install reference auth modules and their configuration files.
install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/reference_modules/example.py
DESTINATION lib/memgraph/auth_module)
install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/reference_modules/ldap.py
DESTINATION lib/memgraph/auth_module)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/reference_modules/ldap.example.yaml
DESTINATION /etc/memgraph/auth_module)