You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
set(BACKENDS "")
|
|
|
|
|
|
|
|
add_library("f2b_backend_exec" MODULE "exec.c")
|
|
|
|
list(APPEND BACKENDS "f2b_backend_exec")
|
|
|
|
|
|
|
|
# TODO: check if library available
|
|
|
|
add_library("f2b_backend_redis" MODULE "redis.c")
|
|
|
|
target_link_libraries("f2b_backend_redis" "hiredis")
|
|
|
|
list(APPEND BACKENDS "f2b_backend_redis")
|
|
|
|
|
|
|
|
message(STATUS "- Backends : ${BACKENDS}")
|
|
|
|
|
|
|
|
install(TARGETS ${BACKENDS}
|
|
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|