From 7829aca793c36b99846dc8033104f2c8151da2ad Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Fri, 10 Nov 2017 12:25:53 +0100 Subject: [PATCH] add Redis to CMake --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c5cf46150..1d7ac46eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,6 +89,7 @@ include(PocoMacros) option(ENABLE_XML "Enable the XML" ON) option(ENABLE_JSON "Enable the JSON" ON) option(ENABLE_MONGODB "Enable MongoDB" ON) +option(ENABLE_REDIS "Enable Redis" ON) option(ENABLE_PDF "Enable PDF" OFF) option(ENABLE_UTIL "Enable Util" ON) option(ENABLE_NET "Enable Net" ON) @@ -174,6 +175,10 @@ if(ENABLE_MONGODB) add_subdirectory(MongoDB) list(APPEND Poco_COMPONENTS "MongoDB") endif() +if(ENABLE_REDIS) +add_subdirectory(Redis) +list(APPEND Poco_COMPONENTS "Redis") +endif() if(ENABLE_PDF) add_subdirectory(PDF) list(APPEND Poco_COMPONENTS "PDF") @@ -276,7 +281,7 @@ set(CPACK_PACKAGE_INSTALL_DIRECTORY "/usr/local") include(CPack) ############################################################# -# cmake config files +# cmake config files include(CMakePackageConfigHelpers) write_basic_package_version_file(