2017-02-28 23:49:04 +00:00
|
|
|
option (USE_INTERNAL_POCO_LIBRARY "Set to FALSE to use system poco library instead of bundled" ${NOT_UNBUNDLED})
|
2017-02-06 20:30:19 +00:00
|
|
|
|
2017-02-07 21:28:13 +00:00
|
|
|
if (NOT USE_INTERNAL_POCO_LIBRARY)
|
2017-02-27 21:07:57 +00:00
|
|
|
find_package (Poco COMPONENTS Net NetSSL XML Data Crypto DataODBC MongoDB)
|
2017-02-06 20:30:19 +00:00
|
|
|
endif ()
|
|
|
|
|
2017-02-27 21:07:57 +00:00
|
|
|
if (Poco_INCLUDE_DIRS AND Poco_Foundation_LIBRARY AND Poco_MongoDB_LIBRARY AND Poco_DataODBC_LIBRARY AND Poco_NetSSL_LIBRARY)
|
|
|
|
include_directories (${Poco_INCLUDE_DIRS})
|
|
|
|
else ()
|
2017-02-08 21:35:27 +00:00
|
|
|
set (USE_INTERNAL_POCO_LIBRARY 1)
|
2017-01-13 11:25:44 +00:00
|
|
|
set (Poco_INCLUDE_DIRS
|
|
|
|
"${ClickHouse_SOURCE_DIR}/contrib/libpoco/Foundation/include/"
|
|
|
|
"${ClickHouse_SOURCE_DIR}/contrib/libpoco/Util/include/"
|
|
|
|
"${ClickHouse_SOURCE_DIR}/contrib/libpoco/Net/include/"
|
2017-02-27 21:07:57 +00:00
|
|
|
"${ClickHouse_SOURCE_DIR}/contrib/libpoco/NetSSL_OpenSSL/include/"
|
2017-01-13 11:25:44 +00:00
|
|
|
"${ClickHouse_SOURCE_DIR}/contrib/libpoco/Data/include/"
|
|
|
|
"${ClickHouse_SOURCE_DIR}/contrib/libpoco/Data/ODBC/include/"
|
|
|
|
"${ClickHouse_SOURCE_DIR}/contrib/libpoco/Crypto/include/"
|
|
|
|
"${ClickHouse_SOURCE_DIR}/contrib/libpoco/XML/include/"
|
|
|
|
"${ClickHouse_SOURCE_DIR}/contrib/libpoco/MongoDB/include/"
|
|
|
|
)
|
|
|
|
|
2017-03-17 13:04:17 +00:00
|
|
|
if (USE_STATIC_LIBRARIES AND USE_INTERNAL_ZLIB_LIBRARY)
|
2017-01-13 11:25:44 +00:00
|
|
|
set (Poco_INCLUDE_DIRS ${Poco_INCLUDE_DIRS} "${ClickHouse_SOURCE_DIR}/contrib/libzlib-ng/" "${ClickHouse_BINARY_DIR}/contrib/libzlib-ng/")
|
|
|
|
endif ()
|
|
|
|
|
2017-02-27 21:07:57 +00:00
|
|
|
set (Poco_Foundation_LIBRARY PocoFoundation)
|
2017-01-13 11:25:44 +00:00
|
|
|
set (Poco_Util_LIBRARY PocoUtil)
|
2017-02-27 21:07:57 +00:00
|
|
|
set (Poco_Net_LIBRARY PocoNet)
|
|
|
|
set (Poco_NetSSL_LIBRARY PocoNetSSL)
|
2017-01-13 11:25:44 +00:00
|
|
|
set (Poco_XML_LIBRARY PocoXML)
|
|
|
|
set (Poco_Data_LIBRARY PocoData)
|
|
|
|
set (Poco_Crypto_LIBRARY PocoCrypto)
|
|
|
|
set (Poco_DataODBC_LIBRARY PocoDataODBC)
|
|
|
|
set (Poco_MongoDB_LIBRARY PocoMongoDB)
|
|
|
|
include_directories (BEFORE ${Poco_INCLUDE_DIRS})
|
|
|
|
endif ()
|
|
|
|
|
2017-02-27 21:07:57 +00:00
|
|
|
message(STATUS "Using Poco: ${Poco_INCLUDE_DIRS} : ${Poco_Foundation_LIBRARY},${Poco_Util_LIBRARY},${Poco_Net_LIBRARY},${Poco_NetSSL_LIBRARY},${Poco_XML_LIBRARY},${Poco_Data_LIBRARY},${Poco_DataODBC_LIBRARY},${Poco_MongoDB_LIBRARY}")
|