mirror of
https://github.com/pocoproject/poco.git
synced 2025-12-09 08:15:33 +01:00
* Add support for modules * Use "" for inclusion * Fix missing includes on Poco.Data module * Add PDF and SevenZip modules, and match modules to build macros * Add CI test * Add missing link libraries in CMake * Add remaining libraries DNSSD, CppParser and CppUnit. Changed some static declarations to inline to export * We also need to forward the ENABLE_NETSSL_* macros * Update CMakeLists files * Add samples as requested, with DateTime and URI test for example * Fix POCO_MODULES_INSTALL macro * chore(CMake): Combine install macro for libraries and C++ modules into one macro. * Apply testsuite changes and address include directories concerns * Restore accidentally deleted build files * Mistakenly added a file generated by CMake, removed. --------- Co-authored-by: Matej Kenda <matejken@gmail.com>
103 lines
1.5 KiB
CMake
103 lines
1.5 KiB
CMake
include(CMakeFindDependencyMacro)
|
|
|
|
if(ENABLE_FOUNDATION)
|
|
find_dependency(PocoFoundation)
|
|
if(ENABLE_ENCODINGS)
|
|
find_dependency(PocoEncodings)
|
|
endif()
|
|
endif()
|
|
|
|
if(ENABLE_ACTIVERECORD)
|
|
find_dependency(PocoActiveRecord)
|
|
endif()
|
|
|
|
if(ENABLE_CRYPTO)
|
|
find_dependency(PocoCrypto)
|
|
endif()
|
|
|
|
if(ENABLE_CPPPARSER)
|
|
find_dependency(PocoCppParser)
|
|
endif()
|
|
|
|
if(ENABLE_CPPUNIT)
|
|
find_dependency(PocoCppUnit)
|
|
endif()
|
|
|
|
if(ENABLE_DATA)
|
|
find_dependency(PocoData)
|
|
|
|
if(ENABLE_DATA_MYSQL)
|
|
find_dependency(PocoDataMySQL)
|
|
endif()
|
|
|
|
if(ENABLE_DATA_ODBC)
|
|
find_dependency(PocoDataODBC)
|
|
endif()
|
|
|
|
if(ENABLE_DATA_POSTGRESQL)
|
|
find_dependency(PocoDataPostgreSQL)
|
|
endif()
|
|
|
|
if(ENABLE_DATA_SQLITE)
|
|
find_dependency(PocoDataSQLite)
|
|
endif()
|
|
endif()
|
|
|
|
if(ENABLE_DNSSD)
|
|
find_dependency(PocoDNSSD)
|
|
|
|
if(ENABLE_DNSSD_AVAHI)
|
|
find_dependency(PocoDNSSDAvahi)
|
|
endif()
|
|
|
|
if(ENABLE_DNSSD_BONJOUR)
|
|
find_dependency(PocoDNSSDBonjour)
|
|
endif()
|
|
endif()
|
|
|
|
if(ENABLE_JSON)
|
|
find_dependency(PocoJSON)
|
|
endif()
|
|
|
|
if(ENABLE_JWT)
|
|
find_dependency(PocoJWT)
|
|
endif()
|
|
|
|
if(ENABLE_MONGODB)
|
|
find_dependency(PocoMongoDB)
|
|
endif()
|
|
|
|
if(ENABLE_NET)
|
|
find_dependency(PocoNet)
|
|
endif()
|
|
|
|
if(ENABLE_PDF)
|
|
find_dependency(PocoPDF)
|
|
endif()
|
|
|
|
if(ENABLE_PROMETHEUS)
|
|
find_dependency(PocoPrometheus)
|
|
endif()
|
|
|
|
if(ENABLE_REDIS)
|
|
find_dependency(PocoRedis)
|
|
endif()
|
|
|
|
if(ENABLE_SEVENZIP)
|
|
find_dependency(PocoSevenZip)
|
|
endif()
|
|
|
|
if(ENABLE_UTIL)
|
|
find_dependency(PocoUtil)
|
|
endif()
|
|
|
|
if(ENABLE_XML)
|
|
find_dependency(PocoXML)
|
|
endif()
|
|
|
|
if(ENABLE_ZIP)
|
|
find_dependency(PocoZip)
|
|
endif()
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/PocoModulesTargets.cmake")
|