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) | ||||
| list(APPEND Poco_COMPONENTS "JSON") | ||||
| 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) | ||||
| add_subdirectory(Util) | ||||
| list(APPEND Poco_COMPONENTS "Util") | ||||
| @@ -192,37 +180,50 @@ add_subdirectory(Net) | ||||
| list(APPEND Poco_COMPONENTS "Net") | ||||
| 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 | ||||
|  | ||||
|  | ||||
| if(WIN32 AND ENABLE_NETSSL_WIN) | ||||
| if(WIN32 AND EXISTS NetSSL_Win AND ENABLE_NETSSL_WIN) | ||||
|     add_subdirectory(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) | ||||
| if(OPENSSL_FOUND) | ||||
|     include_directories("${OPENSSL_INCLUDE_DIR}") | ||||
|     if(ENABLE_NETSSL) | ||||
|     if(EXISTS NetSSL_OpenSSL AND ENABLE_NETSSL) | ||||
|     add_subdirectory(NetSSL_OpenSSL) | ||||
|     list(APPEND Poco_COMPONENTS "NetSSL_OpenSSL") | ||||
|     endif() | ||||
|     if(ENABLE_CRYPTO) | ||||
|     if(EXISTS Crypto AND ENABLE_CRYPTO) | ||||
|     add_subdirectory(Crypto) | ||||
|     list(APPEND Poco_COMPONENTS "Crypto") | ||||
|     endif() | ||||
| endif(OPENSSL_FOUND) | ||||
|  | ||||
| if(ENABLE_DATA) | ||||
| if(EXISTS Data AND ENABLE_DATA) | ||||
| add_subdirectory(Data) | ||||
| list(APPEND Poco_COMPONENTS "Data") | ||||
| endif() | ||||
| if(ENABLE_SEVENZIP) | ||||
| if(EXISTS SevenZip AND ENABLE_SEVENZIP) | ||||
| add_subdirectory(SevenZip) | ||||
| list(APPEND Poco_COMPONENTS "SevenZip") | ||||
| endif() | ||||
| if(ENABLE_ZIP) | ||||
| if(EXISTS Zip AND ENABLE_ZIP) | ||||
| add_subdirectory(Zip) | ||||
| list(APPEND Poco_COMPONENTS "Zip") | ||||
| endif() | ||||
| @@ -231,32 +232,33 @@ find_package(APR) | ||||
| find_package(Apache2) | ||||
| if(APRUTIL_FOUND AND APACHE_FOUND) | ||||
|     include_directories( "${APACHE_INCLUDE_DIR}" "${APRUTIL_INCLUDE_DIR}" ) | ||||
|     if(ENABLE_APACHECONNECTOR) | ||||
|     if(EXISTS ApacheConnector AND ENABLE_APACHECONNECTOR) | ||||
|     add_subdirectory(ApacheConnector) | ||||
|     list(APPEND Poco_COMPONENTS "ApacheConnector") | ||||
|     endif() | ||||
| endif(APRUTIL_FOUND AND APACHE_FOUND) | ||||
|  | ||||
| if(ENABLE_CPPPARSER) | ||||
| if(EXISTS CppParser AND ENABLE_CPPPARSER) | ||||
| add_subdirectory(CppParser) | ||||
| list(APPEND Poco_COMPONENTS "CppParser") | ||||
| endif() | ||||
|  | ||||
| if(ENABLE_POCODOC) | ||||
| if(EXISTS PocoDoc AND ENABLE_POCODOC) | ||||
| add_subdirectory(PocoDoc) | ||||
| list(APPEND Poco_COMPONENTS "PocoDoc") | ||||
| endif() | ||||
|  | ||||
| if(ENABLE_PAGECOMPILER) | ||||
| if(EXISTS PageCompiler AND ENABLE_PAGECOMPILER) | ||||
| add_subdirectory(PageCompiler) | ||||
| list(APPEND Poco_COMPONENTS "PageCompiler") | ||||
| endif() | ||||
|  | ||||
| if(ENABLE_PAGECOMPILER_FILE2PAGE) | ||||
| if(EXISTS PageCompiler/File2Page AND ENABLE_PAGECOMPILER_FILE2PAGE) | ||||
| add_subdirectory(PageCompiler/File2Page) | ||||
| list(APPEND Poco_COMPONENTS "File2Page") | ||||
| endif() | ||||
|  | ||||
|  | ||||
| ############################################################# | ||||
| # Uninstall stuff see: http://www.vtk.org/Wiki/CMake_FAQ | ||||
| configure_file( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Guenter Obiltschnig
					Guenter Obiltschnig