mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
				synced 2025-10-30 18:17:50 +00:00 
			
		
		
		
	Make cmake work with minimal package
This commit is contained in:
		| @@ -171,18 +171,6 @@ if(ENABLE_JSON) | |||||||
| add_subdirectory(JSON) | add_subdirectory(JSON) | ||||||
| list(APPEND Poco_COMPONENTS "JSON") | list(APPEND Poco_COMPONENTS "JSON") | ||||||
| endif() | endif() | ||||||
| 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") |  | ||||||
| endif() |  | ||||||
| if(ENABLE_UTIL) | if(ENABLE_UTIL) | ||||||
| add_subdirectory(Util) | add_subdirectory(Util) | ||||||
| list(APPEND Poco_COMPONENTS "Util") | list(APPEND Poco_COMPONENTS "Util") | ||||||
| @@ -192,37 +180,50 @@ add_subdirectory(Net) | |||||||
| list(APPEND Poco_COMPONENTS "Net") | list(APPEND Poco_COMPONENTS "Net") | ||||||
| endif() | endif() | ||||||
|  |  | ||||||
|  | if(EXISTS MongoDB AND ENABLE_MONGODB) | ||||||
|  | add_subdirectory(MongoDB) | ||||||
|  | list(APPEND Poco_COMPONENTS "MongoDB") | ||||||
|  | endif() | ||||||
|  | if(EXISTS Redis AND ENABLE_REDIS) | ||||||
|  | add_subdirectory(Redis) | ||||||
|  | list(APPEND Poco_COMPONENTS "Redis") | ||||||
|  | endif() | ||||||
|  | if(EXISTS PDF AND ENABLE_PDF) | ||||||
|  | add_subdirectory(PDF) | ||||||
|  | list(APPEND Poco_COMPONENTS "PDF") | ||||||
|  | endif() | ||||||
|  |  | ||||||
|  |  | ||||||
| #NetSSL | #NetSSL | ||||||
|  |  | ||||||
|  |  | ||||||
| if(WIN32 AND ENABLE_NETSSL_WIN) | if(WIN32 AND EXISTS NetSSL_Win AND ENABLE_NETSSL_WIN) | ||||||
|     add_subdirectory(NetSSL_Win) |     add_subdirectory(NetSSL_Win) | ||||||
|     list(APPEND Poco_COMPONENTS "NetSSL_Win") |     list(APPEND Poco_COMPONENTS "NetSSL_Win") | ||||||
| endif(WIN32 AND ENABLE_NETSSL_WIN) | endif(WIN32 AND EXISTS NetSSL_Win AND ENABLE_NETSSL_WIN) | ||||||
|  |  | ||||||
| find_package(OpenSSL) | find_package(OpenSSL) | ||||||
| if(OPENSSL_FOUND) | if(OPENSSL_FOUND) | ||||||
|     include_directories("${OPENSSL_INCLUDE_DIR}") |     include_directories("${OPENSSL_INCLUDE_DIR}") | ||||||
|     if(ENABLE_NETSSL) |     if(EXISTS NetSSL_OpenSSL AND ENABLE_NETSSL) | ||||||
|     add_subdirectory(NetSSL_OpenSSL) |     add_subdirectory(NetSSL_OpenSSL) | ||||||
|     list(APPEND Poco_COMPONENTS "NetSSL_OpenSSL") |     list(APPEND Poco_COMPONENTS "NetSSL_OpenSSL") | ||||||
|     endif() |     endif() | ||||||
|     if(ENABLE_CRYPTO) |     if(EXISTS Crypto AND ENABLE_CRYPTO) | ||||||
|     add_subdirectory(Crypto) |     add_subdirectory(Crypto) | ||||||
|     list(APPEND Poco_COMPONENTS "Crypto") |     list(APPEND Poco_COMPONENTS "Crypto") | ||||||
|     endif() |     endif() | ||||||
| endif(OPENSSL_FOUND) | endif(OPENSSL_FOUND) | ||||||
|  |  | ||||||
| if(ENABLE_DATA) | if(EXISTS Data AND ENABLE_DATA) | ||||||
| add_subdirectory(Data) | add_subdirectory(Data) | ||||||
| list(APPEND Poco_COMPONENTS "Data") | list(APPEND Poco_COMPONENTS "Data") | ||||||
| endif() | endif() | ||||||
| if(ENABLE_SEVENZIP) | if(EXISTS SevenZip AND ENABLE_SEVENZIP) | ||||||
| add_subdirectory(SevenZip) | add_subdirectory(SevenZip) | ||||||
| list(APPEND Poco_COMPONENTS "SevenZip") | list(APPEND Poco_COMPONENTS "SevenZip") | ||||||
| endif() | endif() | ||||||
| if(ENABLE_ZIP) | if(EXISTS Zip AND ENABLE_ZIP) | ||||||
| add_subdirectory(Zip) | add_subdirectory(Zip) | ||||||
| list(APPEND Poco_COMPONENTS "Zip") | list(APPEND Poco_COMPONENTS "Zip") | ||||||
| endif() | endif() | ||||||
| @@ -231,32 +232,33 @@ find_package(APR) | |||||||
| find_package(Apache2) | find_package(Apache2) | ||||||
| if(APRUTIL_FOUND AND APACHE_FOUND) | if(APRUTIL_FOUND AND APACHE_FOUND) | ||||||
|     include_directories( "${APACHE_INCLUDE_DIR}" "${APRUTIL_INCLUDE_DIR}" ) |     include_directories( "${APACHE_INCLUDE_DIR}" "${APRUTIL_INCLUDE_DIR}" ) | ||||||
|     if(ENABLE_APACHECONNECTOR) |     if(EXISTS ApacheConnector AND ENABLE_APACHECONNECTOR) | ||||||
|     add_subdirectory(ApacheConnector) |     add_subdirectory(ApacheConnector) | ||||||
|     list(APPEND Poco_COMPONENTS "ApacheConnector") |     list(APPEND Poco_COMPONENTS "ApacheConnector") | ||||||
|     endif() |     endif() | ||||||
| endif(APRUTIL_FOUND AND APACHE_FOUND) | endif(APRUTIL_FOUND AND APACHE_FOUND) | ||||||
|  |  | ||||||
| if(ENABLE_CPPPARSER) | if(EXISTS CppParser AND ENABLE_CPPPARSER) | ||||||
| add_subdirectory(CppParser) | add_subdirectory(CppParser) | ||||||
| list(APPEND Poco_COMPONENTS "CppParser") | list(APPEND Poco_COMPONENTS "CppParser") | ||||||
| endif() | endif() | ||||||
|  |  | ||||||
| if(ENABLE_POCODOC) | if(EXISTS PocoDoc AND ENABLE_POCODOC) | ||||||
| add_subdirectory(PocoDoc) | add_subdirectory(PocoDoc) | ||||||
| list(APPEND Poco_COMPONENTS "PocoDoc") | list(APPEND Poco_COMPONENTS "PocoDoc") | ||||||
| endif() | endif() | ||||||
|  |  | ||||||
| if(ENABLE_PAGECOMPILER) | if(EXISTS PageCompiler AND ENABLE_PAGECOMPILER) | ||||||
| add_subdirectory(PageCompiler) | add_subdirectory(PageCompiler) | ||||||
| list(APPEND Poco_COMPONENTS "PageCompiler") | list(APPEND Poco_COMPONENTS "PageCompiler") | ||||||
| endif() | endif() | ||||||
|  |  | ||||||
| if(ENABLE_PAGECOMPILER_FILE2PAGE) | if(EXISTS PageCompiler/File2Page AND ENABLE_PAGECOMPILER_FILE2PAGE) | ||||||
| add_subdirectory(PageCompiler/File2Page) | add_subdirectory(PageCompiler/File2Page) | ||||||
| list(APPEND Poco_COMPONENTS "File2Page") | list(APPEND Poco_COMPONENTS "File2Page") | ||||||
| endif() | endif() | ||||||
|  |  | ||||||
|  |  | ||||||
| ############################################################# | ############################################################# | ||||||
| # Uninstall stuff see: http://www.vtk.org/Wiki/CMake_FAQ | # Uninstall stuff see: http://www.vtk.org/Wiki/CMake_FAQ | ||||||
| configure_file( | configure_file( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Guenter Obiltschnig
					Guenter Obiltschnig