Browse Source

+ update cmake

master
Alex 'AdUser' Z 8 years ago
parent
commit
41598ca454
  1. 7
      src/sources/CMakeLists.txt

7
src/sources/CMakeLists.txt

@ -4,6 +4,13 @@ set(SOURCES "")
add_library("f2b_source_files" MODULE "files.c" "../strlcpy.c")
list(APPEND SOURCES "f2b_source_files")
find_library(REDIS_FOUND "hiredis")
if (WITH_REDIS AND REDIS_FOUND)
add_library("f2b_source_redis" MODULE "redis.c" "../strlcpy.c")
target_link_libraries("f2b_source_redis" "hiredis")
list(APPEND SOURCES "f2b_source_redis")
endif ()
message(STATUS "- Sources : ${SOURCES}")
install(TARGETS ${SOURCES}

Loading…
Cancel
Save