diff --git a/ApacheConnector/CMakeLists.txt b/ApacheConnector/CMakeLists.txt
new file mode 100644
index 000000000..0a0f17294
--- /dev/null
+++ b/ApacheConnector/CMakeLists.txt
@@ -0,0 +1,13 @@
+set(LIBNAME "mod_poco")
+
+include_directories( include ${APACHE_INCLUDE_DIR} ${APRUTIL_INCLUDE_DIR} )
+
+aux_source_directory(src SRCS)
+
+add_library( ${LIBNAME} SHARED ${SRCS} )
+set_target_properties( ${LIBNAME} PROPERTIES VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
+target_link_libraries( ${LIBNAME} )
+
+if (ENABLE_TESTS)
+ add_subdirectory(samples)
+endif ()
\ No newline at end of file
diff --git a/ApacheConnector/samples/CMakeLists.txt b/ApacheConnector/samples/CMakeLists.txt
new file mode 100644
index 000000000..e584a1a2e
--- /dev/null
+++ b/ApacheConnector/samples/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_subdirectory( FormServer )
+add_subdirectory( TimeServer )
diff --git a/ApacheConnector/samples/FormServer/CMakeLists.txt b/ApacheConnector/samples/FormServer/CMakeLists.txt
new file mode 100644
index 000000000..a679c8971
--- /dev/null
+++ b/ApacheConnector/samples/FormServer/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "FormServer")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_library( ${SAMPLE_NAME} SHARED ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoNet PocoFoundation )
diff --git a/ApacheConnector/samples/TimeServer/CMakeLists.txt b/ApacheConnector/samples/TimeServer/CMakeLists.txt
new file mode 100644
index 000000000..154b78f2f
--- /dev/null
+++ b/ApacheConnector/samples/TimeServer/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "TimeServer-apache")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_library( ${SAMPLE_NAME} SHARED ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoNet PocoFoundation )
diff --git a/CppUnit/CMakeLists.txt b/CppUnit/CMakeLists.txt
new file mode 100644
index 000000000..8f8ed6454
--- /dev/null
+++ b/CppUnit/CMakeLists.txt
@@ -0,0 +1,11 @@
+set(LIBNAME "CppUnit")
+
+aux_source_directory(src SRCS)
+
+add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
+set_target_properties( ${LIBNAME}
+ PROPERTIES
+ VERSION "1"
+ SOVERSION "1")
+target_link_libraries( ${LIBNAME} )
+
diff --git a/Crypto/CMakeLists.txt b/Crypto/CMakeLists.txt
new file mode 100644
index 000000000..d2dbf171c
--- /dev/null
+++ b/Crypto/CMakeLists.txt
@@ -0,0 +1,33 @@
+set(LIBNAME "PocoCrypto")
+set(LIBNAME "${LIBNAME}${LIB_EXT}")
+
+aux_source_directory(src SRCS)
+add_definitions(-D_USRDLL -DCrypto_EXPORTS)
+include_directories( include)
+
+add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
+set_target_properties( ${LIBNAME} PROPERTIES VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
+
+#if(CMAKE_SYSTEM MATCHES "Windows")
+# target_link_libraries( ${LIBNAME} PocoFoundation${LIB_EXT} ${LIB_EAY_RELEASE} ${OPENSSL_LIBRARIES} )
+#ELSE()
+# target_link_libraries( ${LIBNAME} PocoFoundation${LIB_EXT} ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY} )
+#ENDIF()
+
+target_link_libraries( ${LIBNAME} PocoFoundation${LIB_EXT} ${OPENSSL_LIBRARIES} )
+
+install(
+ DIRECTORY include/Poco
+ DESTINATION include
+ PATTERN ".svn" EXCLUDE
+ )
+
+install(
+ TARGETS ${LIBNAME}
+ DESTINATION lib
+ )
+
+if (ENABLE_TESTS)
+ add_subdirectory(samples)
+ add_subdirectory(testsuite)
+endif ()
diff --git a/Crypto/samples/CMakeLists.txt b/Crypto/samples/CMakeLists.txt
new file mode 100644
index 000000000..2dbff2363
--- /dev/null
+++ b/Crypto/samples/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( genrsakey )
diff --git a/Crypto/samples/genrsakey/CMakeLists.txt b/Crypto/samples/genrsakey/CMakeLists.txt
new file mode 100644
index 000000000..8401b3ac9
--- /dev/null
+++ b/Crypto/samples/genrsakey/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "genrsakey")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoCrypto PocoUtil PocoXML PocoFoundation )
diff --git a/Crypto/testsuite/CMakeLists.txt b/Crypto/testsuite/CMakeLists.txt
new file mode 100644
index 000000000..411bc3379
--- /dev/null
+++ b/Crypto/testsuite/CMakeLists.txt
@@ -0,0 +1,19 @@
+set( TEST_SRCS
+src/CryptoTest.cpp
+src/CryptoTestSuite.cpp
+src/Driver.cpp
+src/RSATest.cpp
+)
+
+#include_directories()
+
+set( WIN_TEST_SRCS
+src/WinDriver.cpp
+)
+
+set(TESTUNIT "${LIBNAME}-testrunner")
+
+add_executable( ${TESTUNIT} ${TEST_SRCS} )
+#set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${TESTUNIT} PocoCrypto PocoNetSSL PocoXML PocoUtil PocoFoundation CppUnit pthread)
+
diff --git a/Data/MySQL/testsuite/CMakeLists.txt b/Data/MySQL/testsuite/CMakeLists.txt
index 28a1117cf..8a6af7abf 100644
--- a/Data/MySQL/testsuite/CMakeLists.txt
+++ b/Data/MySQL/testsuite/CMakeLists.txt
@@ -14,6 +14,6 @@ src/WinDriver.cpp
set(TESTUNIT "${LIBNAME}-testrunner")
add_executable( ${TESTUNIT} ${TEST_SRCS} )
-set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+#set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${TESTUNIT} PocoDataMySQL PocoData PocoFoundation CppUnit )
diff --git a/Data/ODBC/testsuite/CMakeLists.txt b/Data/ODBC/testsuite/CMakeLists.txt
index ef8731dc7..0f0e64268 100644
--- a/Data/ODBC/testsuite/CMakeLists.txt
+++ b/Data/ODBC/testsuite/CMakeLists.txt
@@ -21,6 +21,6 @@ src/WinDriver.cpp
set(TESTUNIT "${LIBNAME}-testrunner")
add_executable( ${TESTUNIT} ${TEST_SRCS} )
-set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+#set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${TESTUNIT} PocoDataODBC PocoData PocoFoundation CppUnit )
diff --git a/Data/SQLite/testsuite/CMakeLists.txt b/Data/SQLite/testsuite/CMakeLists.txt
index 73e188144..c2c96731f 100644
--- a/Data/SQLite/testsuite/CMakeLists.txt
+++ b/Data/SQLite/testsuite/CMakeLists.txt
@@ -13,6 +13,6 @@ src/WinDriver.cpp
set(TESTUNIT "${LIBNAME}-testrunner")
add_executable( ${TESTUNIT} ${TEST_SRCS} )
-set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+#set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${TESTUNIT} PocoDataSQLite PocoData PocoFoundation CppUnit )
diff --git a/Data/samples/Binding/CMakeLists.txt b/Data/samples/Binding/CMakeLists.txt
index 732137f6e..d53950956 100644
--- a/Data/samples/Binding/CMakeLists.txt
+++ b/Data/samples/Binding/CMakeLists.txt
@@ -4,5 +4,5 @@ set(LOCAL_SRCS "")
aux_source_directory(src LOCAL_SRCS)
add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
-set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${SAMPLE_NAME} PocoDataSQLite PocoData PocoFoundation )
diff --git a/Data/samples/RecordSet/CMakeLists.txt b/Data/samples/RecordSet/CMakeLists.txt
index c5a2efed5..9551a78f9 100644
--- a/Data/samples/RecordSet/CMakeLists.txt
+++ b/Data/samples/RecordSet/CMakeLists.txt
@@ -4,5 +4,5 @@ set(LOCAL_SRCS "")
aux_source_directory(src LOCAL_SRCS)
add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
-set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${SAMPLE_NAME} PocoDataSQLite PocoData PocoFoundation )
diff --git a/Data/samples/RowFormatter/CMakeLists.txt b/Data/samples/RowFormatter/CMakeLists.txt
index 58c7aad20..08bde9c0e 100644
--- a/Data/samples/RowFormatter/CMakeLists.txt
+++ b/Data/samples/RowFormatter/CMakeLists.txt
@@ -4,5 +4,5 @@ set(LOCAL_SRCS "")
aux_source_directory(src LOCAL_SRCS)
add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
-set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${SAMPLE_NAME} PocoDataSQLite PocoData PocoFoundation )
diff --git a/Data/samples/Tuple/CMakeLists.txt b/Data/samples/Tuple/CMakeLists.txt
index 78dbcefb3..cf9a353db 100644
--- a/Data/samples/Tuple/CMakeLists.txt
+++ b/Data/samples/Tuple/CMakeLists.txt
@@ -4,5 +4,5 @@ set(LOCAL_SRCS "")
aux_source_directory(src LOCAL_SRCS)
add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
-set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${SAMPLE_NAME} PocoDataSQLite PocoData PocoFoundation )
diff --git a/Data/samples/TypeHandler/CMakeLists.txt b/Data/samples/TypeHandler/CMakeLists.txt
index 276efbd19..063e87863 100644
--- a/Data/samples/TypeHandler/CMakeLists.txt
+++ b/Data/samples/TypeHandler/CMakeLists.txt
@@ -4,5 +4,5 @@ set(LOCAL_SRCS "")
aux_source_directory(src LOCAL_SRCS)
add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
-set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${SAMPLE_NAME} PocoDataSQLite PocoData PocoFoundation )
diff --git a/Data/testsuite/CMakeLists.txt b/Data/testsuite/CMakeLists.txt
index 3a1fa3a22..75a4e6223 100644
--- a/Data/testsuite/CMakeLists.txt
+++ b/Data/testsuite/CMakeLists.txt
@@ -20,6 +20,6 @@ src/WinDriver.cpp
set(TESTUNIT "${LIBNAME}-testrunner")
add_executable( ${TESTUNIT} ${TEST_SRCS} )
-set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+#set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${TESTUNIT} PocoData PocoUtil PocoXML PocoFoundation CppUnit)
diff --git a/Foundation/CMakeLists.txt b/Foundation/CMakeLists.txt
new file mode 100644
index 000000000..d5c1d349f
--- /dev/null
+++ b/Foundation/CMakeLists.txt
@@ -0,0 +1,222 @@
+set(LIBNAME "PocoFoundation")
+if (CMAKE_BUILD_TYPE MATCHES Debug)
+ set(LIBNAME "${LIBNAME}d")
+endif()
+
+
+set( BASE_SRCS
+ src/ASCIIEncoding.cpp
+ src/Ascii.cpp
+ src/AtomicCounter.cpp
+ src/AbstractObserver.cpp
+ src/ActiveDispatcher.cpp
+ src/ArchiveStrategy.cpp
+ src/AsyncChannel.cpp
+ src/Base64Decoder.cpp
+ src/Base64Encoder.cpp
+ src/BinaryReader.cpp
+ src/BinaryWriter.cpp
+ src/Bugcheck.cpp
+ src/ByteOrder.cpp
+ src/Channel.cpp
+ src/Checksum.cpp
+ src/Condition.cpp
+ src/Configurable.cpp
+ src/ConsoleChannel.cpp
+ src/CountingStream.cpp
+ src/DateTime.cpp
+ src/DateTimeFormat.cpp
+ src/DateTimeFormatter.cpp
+ src/DateTimeParser.cpp
+ src/Debugger.cpp
+ src/DeflatingStream.cpp
+ src/DigestEngine.cpp
+ src/DigestStream.cpp
+ src/DirectoryIterator.cpp
+ src/Environment.cpp
+ src/ErrorHandler.cpp
+ src/Event.cpp
+ src/EventArgs.cpp
+ src/Exception.cpp
+ src/FPEnvironment.cpp
+ src/File.cpp
+ src/FIFOBufferStream.cpp
+ src/FileChannel.cpp
+ src/FileStream.cpp
+ src/FileStreamFactory.cpp
+ src/Format.cpp
+ src/Formatter.cpp
+ src/FormattingChannel.cpp
+ src/Glob.cpp
+ src/Hash.cpp
+ src/HashStatistic.cpp
+ src/HexBinaryDecoder.cpp
+ src/HexBinaryEncoder.cpp
+ src/InflatingStream.cpp
+ src/Latin1Encoding.cpp
+ src/Latin2Encoding.cpp
+ src/Latin9Encoding.cpp
+ src/LineEndingConverter.cpp
+ src/LocalDateTime.cpp
+ src/LogFile.cpp
+ src/LogStream.cpp
+ src/Logger.cpp
+ src/LoggingFactory.cpp
+ src/LoggingRegistry.cpp
+ src/MD4Engine.cpp
+ src/MD5Engine.cpp
+ src/Manifest.cpp
+ src/MemoryPool.cpp
+ src/MemoryStream.cpp
+ src/Message.cpp
+ src/Mutex.cpp
+ src/NamedEvent.cpp
+ src/NamedMutex.cpp
+ src/NestedDiagnosticContext.cpp
+ src/Notification.cpp
+ src/NotificationCenter.cpp
+ src/NotificationQueue.cpp
+ src/TimedNotificationQueue.cpp
+ src/PriorityNotificationQueue.cpp
+ src/NullChannel.cpp
+ src/NullStream.cpp
+ src/NumberFormatter.cpp
+ src/NumberParser.cpp
+# src/OpcomChannel.cpp
+ src/Path.cpp
+ src/PatternFormatter.cpp
+ src/Pipe.cpp
+ src/PipeImpl.cpp
+ src/PipeStream.cpp
+ src/Process.cpp
+ src/PurgeStrategy.cpp
+ src/RWLock.cpp
+ src/Random.cpp
+ src/RandomStream.cpp
+ src/RefCountedObject.cpp
+ src/RegularExpression.cpp
+ src/RotateStrategy.cpp
+ src/Runnable.cpp
+ src/SHA1Engine.cpp
+ src/Semaphore.cpp
+ src/SharedLibrary.cpp
+ src/SharedMemory.cpp
+ src/SignalHandler.cpp
+ src/SimpleFileChannel.cpp
+ src/SplitterChannel.cpp
+ src/Stopwatch.cpp
+ src/StreamChannel.cpp
+ src/StreamConverter.cpp
+ src/StreamCopier.cpp
+ src/StreamTokenizer.cpp
+ src/String.cpp
+ src/StringTokenizer.cpp
+ src/SynchronizedObject.cpp
+ src/Task.cpp
+ src/TaskManager.cpp
+ src/TaskNotification.cpp
+ src/TeeStream.cpp
+ src/TemporaryFile.cpp
+ src/TextConverter.cpp
+ src/TextEncoding.cpp
+ src/TextIterator.cpp
+ src/TextBufferIterator.cpp
+ src/Thread.cpp
+ src/ThreadTarget.cpp
+ src/ThreadLocal.cpp
+ src/ThreadPool.cpp
+ src/Timer.cpp
+ src/Timespan.cpp
+ src/Timestamp.cpp
+ src/Timezone.cpp
+ src/Token.cpp
+ src/URI.cpp
+ src/URIStreamFactory.cpp
+ src/URIStreamOpener.cpp
+ src/UTF16Encoding.cpp
+ src/UTF32Encoding.cpp
+ src/UTF8Encoding.cpp
+ src/UTF8String.cpp
+ src/UUID.cpp
+ src/UUIDGenerator.cpp
+ src/Unicode.cpp
+ src/UnicodeConverter.cpp
+ src/Var.cpp
+ src/VarHolder.cpp
+ src/Void.cpp
+ src/Windows1250Encoding.cpp
+ src/Windows1251Encoding.cpp
+ src/Windows1252Encoding.cpp
+ src/adler32.c
+ src/compress.c
+ src/crc32.c
+ src/deflate.c
+# src/gzclose.c
+# src/gzlib.c
+# src/gzread.c
+# src/gzwrite.c
+# src/uncompr.c
+ src/infback.c
+ src/inffast.c
+ src/inflate.c
+ src/inftrees.c
+ src/pcre_chartables.c
+ src/pcre_compile.c
+ src/pcre_exec.c
+ src/pcre_fullinfo.c
+ src/pcre_globals.c
+ src/pcre_maketables.c
+ src/pcre_newline.c
+ src/pcre_ord2utf8.c
+ src/pcre_study.c
+ src/pcre_tables.c
+ src/pcre_try_flipped.c
+ src/pcre_ucd.c
+ src/pcre_valid_utf8.c
+ src/pcre_xclass.c
+ src/pocomsg.mc
+ src/trees.c
+ src/zutil.c
+)
+
+set(WIN_SRCS
+ src/EventLogChannel.cpp
+ src/WindowsConsoleChannel.cpp
+)
+
+set(LIN_SRCS
+ src/SyslogChannel.cpp
+)
+
+if(CMAKE_SYSTEM MATCHES "Windows")
+ set(SRCS ${BASE_SRCS} ${WIN_SRCS})
+ add_definitions( -DPCRE_STATIC -DFoundation_EXPORTS)
+ set(SYSLIBS ${SYSLIBS} iphlpapi)
+else (CMAKE_SYSTEM MATCHES "Windows")
+ set(SRCS ${BASE_SRCS} ${LIN_SRCS})
+ add_definitions( -DPCRE_STATIC)
+endif(CMAKE_SYSTEM MATCHES "Windows")
+
+add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
+set_target_properties( ${LIBNAME} PROPERTIES VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
+if (${CMAKE_CXX_COMPILER_ID} MATCHES "SunPro")
+ set_target_properties( ${LIBNAME} PROPERTIES LINK_FLAGS "-library=stlport4")
+endif (${CMAKE_CXX_COMPILER_ID} MATCHES "SunPro")
+target_link_libraries( ${LIBNAME} ${SYSLIBS})
+
+install(
+ DIRECTORY include/Poco
+ DESTINATION include
+ PATTERN ".svn" EXCLUDE
+ )
+
+install(
+ TARGETS ${LIBNAME}
+ DESTINATION lib
+ )
+
+if (ENABLE_TESTS)
+ add_subdirectory( samples )
+ add_subdirectory( testsuite )
+endif ()
+
diff --git a/Foundation/samples/ActiveMethod/CMakeLists.txt b/Foundation/samples/ActiveMethod/CMakeLists.txt
new file mode 100644
index 000000000..da310114b
--- /dev/null
+++ b/Foundation/samples/ActiveMethod/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "ActiveMethod")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${CMAKE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/samples/Activity/CMakeLists.txt b/Foundation/samples/Activity/CMakeLists.txt
new file mode 100644
index 000000000..7e2adc2ad
--- /dev/null
+++ b/Foundation/samples/Activity/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "Activity")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/samples/BinaryReaderWriter/CMakeLists.txt b/Foundation/samples/BinaryReaderWriter/CMakeLists.txt
new file mode 100644
index 000000000..c70a9c650
--- /dev/null
+++ b/Foundation/samples/BinaryReaderWriter/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "BinaryReaderWriter")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/samples/CMakeLists.txt b/Foundation/samples/CMakeLists.txt
new file mode 100644
index 000000000..77b4bddde
--- /dev/null
+++ b/Foundation/samples/CMakeLists.txt
@@ -0,0 +1,20 @@
+add_subdirectory(ActiveMethod)
+add_subdirectory(Activity)
+add_subdirectory(BinaryReaderWriter)
+add_subdirectory(DateTime)
+add_subdirectory(LogRotation)
+add_subdirectory(Logger)
+add_subdirectory(NotificationQueue)
+add_subdirectory(StringTokenizer)
+add_subdirectory(Timer)
+add_subdirectory(URI)
+add_subdirectory(base64decode)
+add_subdirectory(base64encode)
+add_subdirectory(deflate)
+add_subdirectory(dir)
+add_subdirectory(grep)
+add_subdirectory(hmacmd5)
+add_subdirectory(inflate)
+add_subdirectory(md5)
+add_subdirectory(uuidgen
+)
diff --git a/Foundation/samples/DateTime/CMakeLists.txt b/Foundation/samples/DateTime/CMakeLists.txt
new file mode 100644
index 000000000..2744d03da
--- /dev/null
+++ b/Foundation/samples/DateTime/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "DateTime")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation)
diff --git a/Foundation/samples/LogRotation/CMakeLists.txt b/Foundation/samples/LogRotation/CMakeLists.txt
new file mode 100644
index 000000000..850fab890
--- /dev/null
+++ b/Foundation/samples/LogRotation/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "LogRotation")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/samples/Logger/CMakeLists.txt b/Foundation/samples/Logger/CMakeLists.txt
new file mode 100644
index 000000000..7a9b3b7a3
--- /dev/null
+++ b/Foundation/samples/Logger/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "Logger")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/samples/NotificationQueue/CMakeLists.txt b/Foundation/samples/NotificationQueue/CMakeLists.txt
new file mode 100644
index 000000000..24be8fd39
--- /dev/null
+++ b/Foundation/samples/NotificationQueue/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "NotificationQueue")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/samples/StringTokenizer/CMakeLists.txt b/Foundation/samples/StringTokenizer/CMakeLists.txt
new file mode 100644
index 000000000..eeac8546a
--- /dev/null
+++ b/Foundation/samples/StringTokenizer/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "StringTokenizer")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/samples/Timer/CMakeLists.txt b/Foundation/samples/Timer/CMakeLists.txt
new file mode 100644
index 000000000..648b154b9
--- /dev/null
+++ b/Foundation/samples/Timer/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "Timer")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/samples/URI/CMakeLists.txt b/Foundation/samples/URI/CMakeLists.txt
new file mode 100644
index 000000000..20006774b
--- /dev/null
+++ b/Foundation/samples/URI/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "URI")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/samples/base64decode/CMakeLists.txt b/Foundation/samples/base64decode/CMakeLists.txt
new file mode 100644
index 000000000..2b98164a4
--- /dev/null
+++ b/Foundation/samples/base64decode/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "base64decode")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/samples/base64encode/CMakeLists.txt b/Foundation/samples/base64encode/CMakeLists.txt
new file mode 100644
index 000000000..bbe51e070
--- /dev/null
+++ b/Foundation/samples/base64encode/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "base64encode")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/samples/deflate/CMakeLists.txt b/Foundation/samples/deflate/CMakeLists.txt
new file mode 100644
index 000000000..06c1cb07f
--- /dev/null
+++ b/Foundation/samples/deflate/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "deflate")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/samples/dir/CMakeLists.txt b/Foundation/samples/dir/CMakeLists.txt
new file mode 100644
index 000000000..831bef949
--- /dev/null
+++ b/Foundation/samples/dir/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "dir")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/samples/grep/CMakeLists.txt b/Foundation/samples/grep/CMakeLists.txt
new file mode 100644
index 000000000..2a53f3245
--- /dev/null
+++ b/Foundation/samples/grep/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "grep")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/samples/hmacmd5/CMakeLists.txt b/Foundation/samples/hmacmd5/CMakeLists.txt
new file mode 100644
index 000000000..c7e0d3667
--- /dev/null
+++ b/Foundation/samples/hmacmd5/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "hmacmd5")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/samples/inflate/CMakeLists.txt b/Foundation/samples/inflate/CMakeLists.txt
new file mode 100644
index 000000000..3f7f0e148
--- /dev/null
+++ b/Foundation/samples/inflate/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "inflate")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/samples/md5/CMakeLists.txt b/Foundation/samples/md5/CMakeLists.txt
new file mode 100644
index 000000000..f8c5443a5
--- /dev/null
+++ b/Foundation/samples/md5/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "md5")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/samples/uuidgen/CMakeLists.txt b/Foundation/samples/uuidgen/CMakeLists.txt
new file mode 100644
index 000000000..522f48189
--- /dev/null
+++ b/Foundation/samples/uuidgen/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "uuidgen")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoFoundation )
diff --git a/Foundation/testsuite/CMakeLists.txt b/Foundation/testsuite/CMakeLists.txt
new file mode 100644
index 000000000..5aaf6d72a
--- /dev/null
+++ b/Foundation/testsuite/CMakeLists.txt
@@ -0,0 +1,152 @@
+set( TEST_SRCS
+src/ActiveDispatcherTest.cpp
+src/ActiveMethodTest.cpp
+src/ActivityTest.cpp
+src/AnyTest.cpp
+src/ArrayTest.cpp
+src/AutoPtrTest.cpp
+src/AutoReleasePoolTest.cpp
+src/Base64Test.cpp
+src/BasicEventTest.cpp
+src/BinaryReaderWriterTest.cpp
+src/ByteOrderTest.cpp
+src/CacheTestSuite.cpp
+src/ChannelTest.cpp
+src/ClassLoaderTest.cpp
+src/ConditionTest.cpp
+src/CoreTest.cpp
+src/CoreTestSuite.cpp
+src/CountingStreamTest.cpp
+src/CryptTestSuite.cpp
+src/DateTimeFormatterTest.cpp
+src/DateTimeParserTest.cpp
+src/DateTimeTest.cpp
+src/DateTimeTestSuite.cpp
+src/DigestStreamTest.cpp
+src/Driver.cpp
+src/DummyDelegate.cpp
+src/DynamicFactoryTest.cpp
+src/DynamicTestSuite.cpp
+src/EventTestSuite.cpp
+src/ExpireCacheTest.cpp
+src/ExpireLRUCacheTest.cpp
+src/FIFOEventTest.cpp
+src/FIFOBufferStreamTest.cpp
+src/FPETest.cpp
+src/FileChannelTest.cpp
+src/FileStreamTest.cpp
+src/FileTest.cpp
+src/FilesystemTestSuite.cpp
+src/FormatTest.cpp
+src/FoundationTestSuite.cpp
+src/GlobTest.cpp
+src/HMACEngineTest.cpp
+src/HashMapTest.cpp
+src/HashSetTest.cpp
+src/HashTableTest.cpp
+src/HashingTestSuite.cpp
+src/HexBinaryTest.cpp
+src/LRUCacheTest.cpp
+src/LineEndingConverterTest.cpp
+src/LinearHashTableTest.cpp
+src/LocalDateTimeTest.cpp
+src/LogStreamTest.cpp
+src/LoggerTest.cpp
+src/LoggingFactoryTest.cpp
+src/LoggingRegistryTest.cpp
+src/LoggingTestSuite.cpp
+src/MD4EngineTest.cpp
+src/MD5EngineTest.cpp
+src/ManifestTest.cpp
+src/MemoryPoolTest.cpp
+src/MemoryStreamTest.cpp
+src/NDCTest.cpp
+src/NamedEventTest.cpp
+src/NamedMutexTest.cpp
+src/NamedTuplesTest.cpp
+src/NotificationCenterTest.cpp
+src/NotificationQueueTest.cpp
+src/ObjectPoolTest.cpp
+src/PriorityNotificationQueueTest.cpp
+src/TimedNotificationQueueTest.cpp
+src/NotificationsTestSuite.cpp
+src/NullStreamTest.cpp
+src/NumberFormatterTest.cpp
+src/NumberParserTest.cpp
+src/PathTest.cpp
+src/PatternFormatterTest.cpp
+src/PriorityEventTest.cpp
+src/ProcessTest.cpp
+src/ProcessesTestSuite.cpp
+src/RWLockTest.cpp
+src/RandomStreamTest.cpp
+src/RandomTest.cpp
+src/RegularExpressionTest.cpp
+src/SHA1EngineTest.cpp
+src/SemaphoreTest.cpp
+src/SharedLibraryTest.cpp
+src/SharedLibraryTestSuite.cpp
+src/SharedMemoryTest.cpp
+src/SharedPtrTest.cpp
+src/SimpleFileChannelTest.cpp
+src/SimpleHashTableTest.cpp
+src/StopwatchTest.cpp
+src/StreamConverterTest.cpp
+src/StreamCopierTest.cpp
+src/StreamTokenizerTest.cpp
+src/StreamsTestSuite.cpp
+src/StringTest.cpp
+src/StringTokenizerTest.cpp
+src/TaskManagerTest.cpp
+src/TaskTest.cpp
+src/TaskTestSuite.cpp
+src/TeeStreamTest.cpp
+src/TestChannel.cpp
+src/TestPlugin.cpp
+src/TextConverterTest.cpp
+src/TextEncodingTest.cpp
+src/TextIteratorTest.cpp
+src/TextBufferIteratorTest.cpp
+src/TextTestSuite.cpp
+src/ThreadLocalTest.cpp
+src/ThreadPoolTest.cpp
+src/ThreadTest.cpp
+src/ThreadingTestSuite.cpp
+src/TimerTest.cpp
+src/TimespanTest.cpp
+src/TimestampTest.cpp
+src/TimezoneTest.cpp
+src/TuplesTest.cpp
+src/TypeListTest.cpp
+src/URIStreamOpenerTest.cpp
+src/URITest.cpp
+src/URITestSuite.cpp
+src/UTF8StringTest.cpp
+src/UUIDGeneratorTest.cpp
+src/UUIDTest.cpp
+src/UUIDTestSuite.cpp
+src/UniqueExpireCacheTest.cpp
+src/UnicodeConverterTest.cpp
+src/UniqueExpireLRUCacheTest.cpp
+src/VarTest.cpp
+src/ZLibTest.cpp
+)
+
+set( WIN_TEST_SRCS
+src/WinDriver.cpp
+)
+
+set(TESTUNIT "${LIBNAME}-testrunner")
+
+add_executable( ${TESTUNIT} ${TEST_SRCS} )
+#set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${TESTUNIT} PocoFoundation CppUnit pthread)
+
+add_executable( TestApp src/TestApp.cpp )
+#set_target_properties( TestApp PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( TestApp PocoFoundation )
+
+add_library( TestLibrary SHARED src/TestApp.cpp )
+#set_target_properties( TestLibrary PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( TestLibrary PocoFoundation )
+
diff --git a/JSON/CMakeLists.txt b/JSON/CMakeLists.txt
new file mode 100644
index 000000000..6a3c0e5cb
--- /dev/null
+++ b/JSON/CMakeLists.txt
@@ -0,0 +1,31 @@
+set(LIBNAME "PocoJSON")
+set(LIBNAME "${LIBNAME}${LIB_EXT}")
+
+aux_source_directory(src SRCS)
+
+if (NOT POCO_STATIC)
+ add_definitions(-DJSON_EXPORTS)
+endif (NOT POCO_STATIC)
+
+add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
+set_target_properties( ${LIBNAME}
+ PROPERTIES
+ VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
+target_link_libraries( ${LIBNAME} PocoFoundation${LIB_EXT})
+
+install(
+ DIRECTORY include/Poco
+ DESTINATION include
+ PATTERN ".svn" EXCLUDE
+ )
+
+install(
+ TARGETS ${LIBNAME}
+ DESTINATION lib
+ )
+
+if (ENABLE_TESTS)
+ add_subdirectory(samples)
+ add_subdirectory(testsuite)
+endif ()
+
diff --git a/JSON/samples/BenchmarkApp/CMakeLists.txt b/JSON/samples/BenchmarkApp/CMakeLists.txt
new file mode 100644
index 000000000..9fc121c3b
--- /dev/null
+++ b/JSON/samples/BenchmarkApp/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "BenchmarkApp")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoJSON PocoFoundation )
diff --git a/JSON/samples/CMakeLists.txt b/JSON/samples/CMakeLists.txt
new file mode 100644
index 000000000..23a5ef3bd
--- /dev/null
+++ b/JSON/samples/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( BenchmarkApp )
diff --git a/JSON/testsuite/CMakeLists.txt b/JSON/testsuite/CMakeLists.txt
new file mode 100644
index 000000000..ba5bcea06
--- /dev/null
+++ b/JSON/testsuite/CMakeLists.txt
@@ -0,0 +1,20 @@
+set( TEST_SRCS
+src/Driver.cpp
+src/JSONTest.cpp
+src/JSONTest.h
+src/JSONTestSuite.cpp
+src/JSONTestSuite.h
+)
+
+#include_directories()
+
+set( WIN_TEST_SRCS
+src/WinDriver.cpp
+)
+
+set(TESTUNIT "${LIBNAME}-testrunner")
+
+add_executable( ${TESTUNIT} ${TEST_SRCS} )
+#set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${TESTUNIT} PocoJSON PocoFoundation CppUnit )
+
diff --git a/Net/CMakeLists.txt b/Net/CMakeLists.txt
new file mode 100644
index 000000000..5a28d026f
--- /dev/null
+++ b/Net/CMakeLists.txt
@@ -0,0 +1,44 @@
+set(LIBNAME "PocoNet")
+set(LIBNAME "${LIBNAME}${LIB_EXT}")
+
+aux_source_directory(src BASE_SRCS)
+
+set( WIN_SRCS
+)
+
+set( LIN_SRCS
+)
+
+if(CMAKE_SYSTEM MATCHES "Windows")
+ set(SRCS ${BASE_SRCS} ${WIN_SRCS})
+ set(SYSLIBS ${SYSLIBS} ws2_32)
+else (CMAKE_SYSTEM MATCHES "Windows")
+ set(SRCS ${BASE_SRCS} ${LIN_SRCS})
+endif(CMAKE_SYSTEM MATCHES "Windows")
+
+if (NOT POCO_STATIC)
+ add_definitions(-DNet_EXPORTS)
+endif (NOT POCO_STATIC)
+
+add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
+set_target_properties( ${LIBNAME}
+ PROPERTIES
+ VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
+target_link_libraries( ${LIBNAME} PocoFoundation${LIB_EXT} ${SYSLIBS})
+
+install(
+ DIRECTORY include/Poco
+ DESTINATION include
+ PATTERN ".svn" EXCLUDE
+ )
+
+install(
+ TARGETS ${LIBNAME}
+ DESTINATION lib
+ )
+
+if (ENABLE_TESTS)
+ add_subdirectory(samples)
+ add_subdirectory(testsuite)
+endif ()
+
diff --git a/Net/samples/CMakeLists.txt b/Net/samples/CMakeLists.txt
new file mode 100644
index 000000000..a73eacbaf
--- /dev/null
+++ b/Net/samples/CMakeLists.txt
@@ -0,0 +1,14 @@
+add_subdirectory(EchoServer)
+add_subdirectory(HTTPFormServer)
+add_subdirectory(HTTPLoadTest)
+add_subdirectory(HTTPTimeServer)
+add_subdirectory(Mail)
+add_subdirectory(Ping)
+add_subdirectory(SMTPLogger)
+add_subdirectory(TimeServer)
+add_subdirectory(TwitterClient)
+add_subdirectory(WebSocketServer)
+add_subdirectory(dict)
+add_subdirectory(download)
+add_subdirectory(httpget)
+
diff --git a/Net/samples/EchoServer/CMakeLists.txt b/Net/samples/EchoServer/CMakeLists.txt
new file mode 100644
index 000000000..e2c36a538
--- /dev/null
+++ b/Net/samples/EchoServer/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "EchoServer")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoNet PocoUtil PocoXML PocoFoundation )
diff --git a/Net/samples/HTTPFormServer/CMakeLists.txt b/Net/samples/HTTPFormServer/CMakeLists.txt
new file mode 100644
index 000000000..653bdcaa9
--- /dev/null
+++ b/Net/samples/HTTPFormServer/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "HTTPFormServer")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoNet PocoUtil PocoXML PocoFoundation )
diff --git a/Net/samples/HTTPLoadTest/CMakeLists.txt b/Net/samples/HTTPLoadTest/CMakeLists.txt
new file mode 100644
index 000000000..73c950036
--- /dev/null
+++ b/Net/samples/HTTPLoadTest/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "HTTPLoadTest")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoNet PocoUtil PocoXML PocoFoundation )
diff --git a/Net/samples/HTTPTimeServer/CMakeLists.txt b/Net/samples/HTTPTimeServer/CMakeLists.txt
new file mode 100644
index 000000000..0aa85eec6
--- /dev/null
+++ b/Net/samples/HTTPTimeServer/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "HTTPTimeServer")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoNet PocoUtil PocoXML PocoFoundation )
diff --git a/Net/samples/Mail/CMakeLists.txt b/Net/samples/Mail/CMakeLists.txt
new file mode 100644
index 000000000..d4a8c9a61
--- /dev/null
+++ b/Net/samples/Mail/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "Mail")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoNet PocoUtil PocoXML PocoFoundation )
diff --git a/Net/samples/Ping/CMakeLists.txt b/Net/samples/Ping/CMakeLists.txt
new file mode 100644
index 000000000..5bfabe007
--- /dev/null
+++ b/Net/samples/Ping/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "Ping")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoNet PocoUtil PocoXML PocoFoundation )
diff --git a/Net/samples/TimeServer/CMakeLists.txt b/Net/samples/TimeServer/CMakeLists.txt
new file mode 100644
index 000000000..11d9b7c6a
--- /dev/null
+++ b/Net/samples/TimeServer/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "TimeServer")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoNet PocoUtil PocoXML PocoFoundation )
diff --git a/Net/samples/TwitterClient/CMakeLists.txt b/Net/samples/TwitterClient/CMakeLists.txt
new file mode 100644
index 000000000..417f5f15d
--- /dev/null
+++ b/Net/samples/TwitterClient/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "TwitterCLient")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoNet PocoUtil PocoXML PocoFoundation )
diff --git a/Net/samples/WebSocketServer/CMakeLists.txt b/Net/samples/WebSocketServer/CMakeLists.txt
new file mode 100644
index 000000000..cdccf9ef2
--- /dev/null
+++ b/Net/samples/WebSocketServer/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "WebSocketServer")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoNet PocoUtil PocoXML PocoFoundation )
diff --git a/Net/samples/dict/CMakeLists.txt b/Net/samples/dict/CMakeLists.txt
new file mode 100644
index 000000000..d16030df5
--- /dev/null
+++ b/Net/samples/dict/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "dict")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoNet PocoUtil PocoXML PocoFoundation )
diff --git a/Net/samples/download/CMakeLists.txt b/Net/samples/download/CMakeLists.txt
new file mode 100644
index 000000000..6752af650
--- /dev/null
+++ b/Net/samples/download/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "download")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoNet PocoUtil PocoXML PocoFoundation )
diff --git a/Net/samples/httpget/CMakeLists.txt b/Net/samples/httpget/CMakeLists.txt
new file mode 100644
index 000000000..976530e89
--- /dev/null
+++ b/Net/samples/httpget/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "httpget")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoNet PocoUtil PocoXML PocoFoundation )
diff --git a/Net/testsuite/CMakeLists.txt b/Net/testsuite/CMakeLists.txt
new file mode 100644
index 000000000..f98ca1910
--- /dev/null
+++ b/Net/testsuite/CMakeLists.txt
@@ -0,0 +1,71 @@
+set( TEST_SRCS
+src/DNSTest.cpp
+src/DatagramSocketTest.cpp
+src/DialogServer.cpp
+src/DialogSocketTest.cpp
+src/Driver.cpp
+src/EchoServer.cpp
+src/FTPClientSessionTest.cpp
+src/FTPClientTestSuite.cpp
+src/FTPStreamFactoryTest.cpp
+src/HTMLFormTest.cpp
+src/HTMLTestSuite.cpp
+src/HTTPClientSessionTest.cpp
+src/HTTPClientTestSuite.cpp
+src/HTTPCookieTest.cpp
+src/HTTPCredentialsTest.cpp
+src/HTTPRequestTest.cpp
+src/HTTPResponseTest.cpp
+src/HTTPServerTest.cpp
+src/HTTPServerTestSuite.cpp
+src/HTTPStreamFactoryTest.cpp
+src/HTTPTestServer.cpp
+src/HTTPTestSuite.cpp
+src/ICMPClientTest.cpp
+src/ICMPClientTestSuite.cpp
+src/ICMPSocketTest.cpp
+src/IPAddressTest.cpp
+src/MailMessageTest.cpp
+src/MailStreamTest.cpp
+src/MailTestSuite.cpp
+src/MediaTypeTest.cpp
+src/MessageHeaderTest.cpp
+src/MessagesTestSuite.cpp
+src/MulticastEchoServer.cpp
+src/MulticastSocketTest.cpp
+src/MultipartReaderTest.cpp
+src/MultipartWriterTest.cpp
+src/NameValueCollectionTest.cpp
+src/NetCoreTestSuite.cpp
+src/NetTestSuite.cpp
+src/NetworkInterfaceTest.cpp
+src/POP3ClientSessionTest.cpp
+src/QuotedPrintableTest.cpp
+src/RawSocketTest.cpp
+src/ReactorTestSuite.cpp
+src/SMTPClientSessionTest.cpp
+src/SocketAddressTest.cpp
+src/SocketReactorTest.cpp
+src/SocketStreamTest.cpp
+src/SocketTest.cpp
+src/SocketsTestSuite.cpp
+src/SyslogTest.cpp
+src/TCPServerTest.cpp
+src/TCPServerTestSuite.cpp
+src/UDPEchoServer.cpp
+src/WebSocketTest.cpp
+src/WebSocketTestSuite.cpp
+)
+
+#include_directories()
+
+set( WIN_TEST_SRCS
+src/WinDriver.cpp
+)
+
+set(TESTUNIT "${LIBNAME}-testrunner")
+
+add_executable( ${TESTUNIT} ${TEST_SRCS} )
+#set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${TESTUNIT} PocoNet PocoUtil PocoXML PocoFoundation CppUnit)
+
diff --git a/NetSSL_OpenSSL/CMakeLists.txt b/NetSSL_OpenSSL/CMakeLists.txt
new file mode 100644
index 000000000..6868d40f2
--- /dev/null
+++ b/NetSSL_OpenSSL/CMakeLists.txt
@@ -0,0 +1,32 @@
+set(LIBNAME "PocoNetSSL")
+set(LIBNAME "${LIBNAME}${LIB_EXT}")
+
+aux_source_directory(src SRCS)
+include_directories( ${OPENSSL_INCLUDE_DIR} )
+
+if (NOT POCO_STATIC)
+ add_definitions(-DNetSSL_EXPORTS)
+endif (NOT POCO_STATIC)
+
+add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
+set_target_properties( ${LIBNAME}
+ PROPERTIES
+ VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
+target_link_libraries( ${LIBNAME} PocoCrypto${LIB_EXT} PocoNet${LIB_EXT} PocoUtil${LIB_EXT} PocoFoundation${LIB_EXT} ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY} )
+
+install(
+ DIRECTORY include/Poco
+ DESTINATION include
+ PATTERN ".svn" EXCLUDE
+ )
+
+install(
+ TARGETS ${LIBNAME}
+ DESTINATION lib
+ )
+
+if (ENABLE_TESTS)
+ add_subdirectory(samples)
+ add_subdirectory(testsuite)
+endif ()
+
diff --git a/NetSSL_OpenSSL/samples/CMakeLists.txt b/NetSSL_OpenSSL/samples/CMakeLists.txt
new file mode 100644
index 000000000..18a675f6b
--- /dev/null
+++ b/NetSSL_OpenSSL/samples/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_subdirectory( HTTPSTimeServer )
+add_subdirectory( download )
diff --git a/NetSSL_OpenSSL/samples/HTTPSTimeServer/CMakeLists.txt b/NetSSL_OpenSSL/samples/HTTPSTimeServer/CMakeLists.txt
new file mode 100644
index 000000000..8df89d0f3
--- /dev/null
+++ b/NetSSL_OpenSSL/samples/HTTPSTimeServer/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "HTTPSTimeServer")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoNetSSL PocoCrypto PocoUtil PocoNet PocoXML PocoFoundation )
diff --git a/NetSSL_OpenSSL/samples/Mail/CMakeLists.txt b/NetSSL_OpenSSL/samples/Mail/CMakeLists.txt
new file mode 100644
index 000000000..2e3bf9cf9
--- /dev/null
+++ b/NetSSL_OpenSSL/samples/Mail/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "Mail-ssl")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoNetSSL PocoCrypto PocoUtil PocoNet PocoXML PocoFoundation )
diff --git a/NetSSL_OpenSSL/samples/download/CMakeLists.txt b/NetSSL_OpenSSL/samples/download/CMakeLists.txt
new file mode 100644
index 000000000..0b22fff3a
--- /dev/null
+++ b/NetSSL_OpenSSL/samples/download/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "download-ssl")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoNetSSL PocoCrypto PocoUtil PocoNet PocoXML PocoFoundation )
diff --git a/NetSSL_OpenSSL/testsuite/CMakeLists.txt b/NetSSL_OpenSSL/testsuite/CMakeLists.txt
new file mode 100644
index 000000000..2f95d7489
--- /dev/null
+++ b/NetSSL_OpenSSL/testsuite/CMakeLists.txt
@@ -0,0 +1,25 @@
+set( TEST_SRCS
+src/Driver.cpp
+src/HTTPSClientSessionTest.cpp
+src/HTTPSClientTestSuite.cpp
+src/HTTPSServerTest.cpp
+src/HTTPSServerTestSuite.cpp
+src/HTTPSStreamFactoryTest.cpp
+src/HTTPSTestServer.cpp
+src/NetSSLTestSuite.cpp
+src/TCPServerTest.cpp
+src/TCPServerTestSuite.cpp
+)
+
+#include_directories()
+
+set( WIN_TEST_SRCS
+src/WinDriver.cpp
+)
+
+set(TESTUNIT "${LIBNAME}-testrunner")
+
+add_executable( ${TESTUNIT} ${TEST_SRCS} )
+#set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${TESTUNIT} PocoNetSSL PocoCrypto PocoNet PocoUtil PocoXML PocoFoundation CppUnit)
+
diff --git a/PDF/CMakeLists.txt b/PDF/CMakeLists.txt
new file mode 100644
index 000000000..31611c3d8
--- /dev/null
+++ b/PDF/CMakeLists.txt
@@ -0,0 +1,32 @@
+set(LIBNAME "PocoPDF")
+set(LIBNAME "${LIBNAME}${LIB_EXT}")
+
+aux_source_directory(src SRCS)
+include_directories(include/Poco/PDF) # zip src
+
+if (NOT POCO_STATIC)
+ add_definitions(-DJSON_EXPORTS)
+endif (NOT POCO_STATIC)
+
+add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
+set_target_properties( ${LIBNAME}
+ PROPERTIES
+ VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
+target_link_libraries( ${LIBNAME} PocoFoundation${LIB_EXT})
+
+install(
+ DIRECTORY include/Poco
+ DESTINATION include
+ PATTERN ".svn" EXCLUDE
+ )
+
+install(
+ TARGETS ${LIBNAME}
+ DESTINATION lib
+ )
+
+if (ENABLE_TESTS)
+ add_subdirectory(samples)
+ add_subdirectory(testsuite)
+endif ()
+
diff --git a/PDF/samples/CMakeLists.txt b/PDF/samples/CMakeLists.txt
new file mode 100644
index 000000000..64c5f2e47
--- /dev/null
+++ b/PDF/samples/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_subdirectory( Image )
+add_subdirectory( Text )
diff --git a/PDF/samples/Image/CMakeLists.txt b/PDF/samples/Image/CMakeLists.txt
new file mode 100644
index 000000000..b7eb9d2d1
--- /dev/null
+++ b/PDF/samples/Image/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "Image")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoPDF PocoFoundation )
diff --git a/PDF/samples/Text/CMakeLists.txt b/PDF/samples/Text/CMakeLists.txt
new file mode 100644
index 000000000..01cdf4ab7
--- /dev/null
+++ b/PDF/samples/Text/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "Text")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoPDF PocoFoundation )
diff --git a/PDF/testsuite/CMakeLists.txt b/PDF/testsuite/CMakeLists.txt
new file mode 100644
index 000000000..11da5e4ce
--- /dev/null
+++ b/PDF/testsuite/CMakeLists.txt
@@ -0,0 +1,20 @@
+set( TEST_SRCS
+src/Driver.cpp
+src/PDFTest.cpp
+src/PDFTest.h
+src/PDFTestSuite.cpp
+src/PDFTestSuite.h
+)
+
+#include_directories()
+
+set( WIN_TEST_SRCS
+src/WinDriver.cpp
+)
+
+set(TESTUNIT "${LIBNAME}-testrunner")
+
+add_executable( ${TESTUNIT} ${TEST_SRCS} )
+#set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${TESTUNIT} PocoPDF PocoFoundation CppUnit )
+
diff --git a/Util/CMakeLists.txt b/Util/CMakeLists.txt
new file mode 100644
index 000000000..1d00ae9ce
--- /dev/null
+++ b/Util/CMakeLists.txt
@@ -0,0 +1,66 @@
+set(LIBNAME "PocoUtil")
+set(LIBNAME "${LIBNAME}${LIB_EXT}")
+
+set( BASE_SRCS
+src/AbstractConfiguration.cpp
+src/Application.cpp
+src/ConfigurationMapper.cpp
+src/ConfigurationView.cpp
+src/FilesystemConfiguration.cpp
+src/HelpFormatter.cpp
+src/IniFileConfiguration.cpp
+src/IntValidator.cpp
+src/LayeredConfiguration.cpp
+src/LoggingConfigurator.cpp
+src/LoggingSubsystem.cpp
+src/MapConfiguration.cpp
+src/Option.cpp
+src/OptionCallback.cpp
+src/OptionException.cpp
+src/OptionProcessor.cpp
+src/OptionSet.cpp
+src/PropertyFileConfiguration.cpp
+src/RegExpValidator.cpp
+src/ServerApplication.cpp
+src/Subsystem.cpp
+src/SystemConfiguration.cpp
+src/Validator.cpp
+src/XMLConfiguration.cpp
+src/Timer.cpp
+src/TimerTask.cpp
+)
+
+set( WIN_SRCS
+src/WinRegistryConfiguration.cpp
+src/WinRegistryKey.cpp
+src/WinService.cpp
+)
+
+if(CMAKE_SYSTEM MATCHES "Windows")
+ set(SRCS ${BASE_SRCS} ${WIN_SRCS})
+ add_definitions(-DUtil_EXPORTS)
+else (CMAKE_SYSTEM MATCHES "Windows")
+ set(SRCS ${BASE_SRCS})
+endif(CMAKE_SYSTEM MATCHES "Windows")
+
+add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
+set_target_properties( ${LIBNAME}
+ PROPERTIES
+ VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
+target_link_libraries( ${LIBNAME} PocoXML${LIB_EXT} PocoFoundation${LIB_EXT})
+
+install(
+ DIRECTORY include/Poco
+ DESTINATION include
+ PATTERN ".svn" EXCLUDE
+ )
+
+install(
+ TARGETS ${LIBNAME}
+ DESTINATION lib
+ )
+
+if (ENABLE_TESTS)
+ add_subdirectory(samples)
+ add_subdirectory(testsuite)
+endif ()
diff --git a/Util/samples/CMakeLists.txt b/Util/samples/CMakeLists.txt
new file mode 100644
index 000000000..62c21118e
--- /dev/null
+++ b/Util/samples/CMakeLists.txt
@@ -0,0 +1,4 @@
+add_subdirectory( SampleApp )
+add_subdirectory( SampleServer )
+add_subdirectory( Units )
+add_subdirectory( pkill )
diff --git a/Util/samples/SampleApp/CMakeLists.txt b/Util/samples/SampleApp/CMakeLists.txt
new file mode 100644
index 000000000..a64def282
--- /dev/null
+++ b/Util/samples/SampleApp/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "SampleApp")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoUtil PocoXML PocoFoundation )
diff --git a/Util/samples/SampleServer/CMakeLists.txt b/Util/samples/SampleServer/CMakeLists.txt
new file mode 100644
index 000000000..82d5a3189
--- /dev/null
+++ b/Util/samples/SampleServer/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "SampleServer")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoUtil PocoXML PocoFoundation )
diff --git a/Util/samples/Units/CMakeLists.txt b/Util/samples/Units/CMakeLists.txt
new file mode 100644
index 000000000..49a5e9e10
--- /dev/null
+++ b/Util/samples/Units/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "Units")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoUtil PocoXML PocoFoundation )
diff --git a/Util/samples/Units/Makefile b/Util/samples/Units/Makefile
new file mode 100644
index 000000000..3936f06f1
--- /dev/null
+++ b/Util/samples/Units/Makefile
@@ -0,0 +1,17 @@
+#
+# Makefile
+#
+# $Id: //poco/svn/Util/samples/SampleServer/Makefile#1 $
+#
+# Makefile for Poco SampleServer
+#
+
+include $(POCO_BASE)/build/rules/global
+
+objects = Units
+
+target = Units
+target_version = 1
+target_libs =
+
+include $(POCO_BASE)/build/rules/exec
diff --git a/Util/samples/Units/Units_vs71.vcproj b/Util/samples/Units/Units_vs71.vcproj
new file mode 100644
index 000000000..57eb3e99d
--- /dev/null
+++ b/Util/samples/Units/Units_vs71.vcproj
@@ -0,0 +1,263 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Util/samples/Units/Units_vs80.vcproj b/Util/samples/Units/Units_vs80.vcproj
new file mode 100644
index 000000000..3e7a9252c
--- /dev/null
+++ b/Util/samples/Units/Units_vs80.vcproj
@@ -0,0 +1,390 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Util/samples/Units/Units_vs90.vcproj b/Util/samples/Units/Units_vs90.vcproj
new file mode 100644
index 000000000..ef5b72aeb
--- /dev/null
+++ b/Util/samples/Units/Units_vs90.vcproj
@@ -0,0 +1,375 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Util/samples/Units/src/Units.cpp b/Util/samples/Units/src/Units.cpp
new file mode 100644
index 000000000..c468477c7
--- /dev/null
+++ b/Util/samples/Units/src/Units.cpp
@@ -0,0 +1,114 @@
+//
+// Units.cpp
+//
+// $Id: //poco/svn/Util/samples/Units/src/Units.cpp#1 $
+//
+// This sample demonstrates the Units.
+//
+// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
+// and Contributors.
+//
+// Permission is hereby granted, free of charge, to any person or organization
+// obtaining a copy of the software and accompanying documentation covered by
+// this license (the "Software") to use, reproduce, display, distribute,
+// execute, and transmit the Software, and to prepare derivative works of the
+// Software, and to permit third-parties to whom the Software is furnished to
+// do so, all subject to the following:
+//
+// The copyright notices in the Software and this entire statement, including
+// the above license grant, this restriction and the following disclaimer,
+// must be included in all copies of the Software, in whole or in part, and
+// all derivative works of the Software, unless such copies or derivative
+// works are solely in the form of machine-executable object code generated by
+// a source language processor.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+// SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+// FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+// DEALINGS IN THE SOFTWARE.
+//
+
+
+#include "Poco/Util/Units.h"
+#include
+
+using namespace Poco::Util::Units::Values;
+using namespace Poco::Util::Units::Constants;
+
+using Poco::Util::Units::square;
+using Poco::Util::Units::cube;
+
+namespace Poco {
+namespace Util {
+namespace Units {
+namespace Units {
+typedef Compose, Power > SpecificWeight;// [kN/m^3]
+} // namespace Units
+namespace Values {
+typedef Value SpecificWeight;
+} } } } // namespace Poco::Util::Units
+
+
+int main()
+{
+ std::cout << "One mile is " << km(mile(1)) << std::endl;
+ // Output: One mile is 1.60934 km
+
+ std::cout << "Flow rate is " << m3(mile(1)*inch(80)*foot(9))/s(minute(5)) << std::endl;
+ // Output: Flow rate is 29.9026 (m)^3.(s)^-1
+
+ hour h;
+ //h = cm(3); // Compile-time error: incompatible units
+ //h = 4; // Compile-time error: 4 of what?
+ h = day(4); // Ok: h is 96 hours
+
+ m l = cm(42);
+ std::cout << cm(42) << " == " << l << " == " << milli(l) << std::endl;
+ std::cout << "Area of circle with radius " << l <<
+ " is " << mm2(square(l) * pi) << std::endl;
+
+ SpecificWeight sw(9.81); // water
+
+ std::cout << "Volume of a water cube with side size " << m(0.1) <<
+ " is " << liter(cube(m(0.1))) <<
+ " and weighs " << N(sw * cube(m(.1))) << std::endl;
+
+ m radius_equator(6378135);
+ m radius_pole(6356750);
+ m3 vol((pi * square(radius_equator) * radius_pole) * 4/3);
+
+ std::cout << "Volume of Earth is " << vol
+ << " (" << yotta(liter(vol)) << ")" << std::endl;
+ std::cout << "It takes " << minute(AU/c) << " for a Sun beam to reach Earth." << std::endl;
+
+
+ std::cout << std::endl << m(1) << " is:" << std::endl;
+ std::cout << "-------------" << std::endl;
+
+ std::cout << deca(m(1)) << std::endl;
+ std::cout << hecto(m(1)) << std::endl;
+ std::cout << kilo(m(1)) << std::endl;
+ std::cout << mega(m(1)) << std::endl;
+ std::cout << giga(m(1)) << std::endl;
+ std::cout << tera(m(1)) << std::endl;
+ std::cout << peta(m(1)) << std::endl;
+ std::cout << exa(m(1)) << std::endl;
+ std::cout << zetta(m(1)) << std::endl;
+ std::cout << yotta(m(1)) << std::endl;
+
+ std::cout << deci(m(1)) << std::endl;
+ std::cout << centi(m(1)) << std::endl;
+ std::cout << milli(m(1)) << std::endl;
+ std::cout << micro(m(1)) << std::endl;
+ std::cout << nano(m(1)) << std::endl;
+ std::cout << pico(m(1)) << std::endl;
+ std::cout << femto(m(1)) << std::endl;
+ std::cout << atto(m(1)) << std::endl;
+ std::cout << zepto(m(1)) << std::endl;
+ std::cout << yocto(m(1)) << std::endl;
+
+ return 0;
+}
diff --git a/Util/samples/pkill/CMakeLists.txt b/Util/samples/pkill/CMakeLists.txt
new file mode 100644
index 000000000..01a245170
--- /dev/null
+++ b/Util/samples/pkill/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "pkill")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoUtil PocoXML PocoFoundation )
diff --git a/Util/testsuite/CMakeLists.txt b/Util/testsuite/CMakeLists.txt
new file mode 100644
index 000000000..ec0dcd925
--- /dev/null
+++ b/Util/testsuite/CMakeLists.txt
@@ -0,0 +1,37 @@
+set( TEST_SRCS
+src/AbstractConfigurationTest.cpp
+src/ConfigurationMapperTest.cpp
+src/ConfigurationTestSuite.cpp
+src/ConfigurationViewTest.cpp
+src/Driver.cpp
+src/FilesystemConfigurationTest.cpp
+src/HelpFormatterTest.cpp
+src/IniFileConfigurationTest.cpp
+src/LayeredConfigurationTest.cpp
+src/LoggingConfiguratorTest.cpp
+src/MapConfigurationTest.cpp
+src/OptionProcessorTest.cpp
+src/OptionSetTest.cpp
+src/OptionTest.cpp
+src/OptionsTestSuite.cpp
+src/PropertyFileConfigurationTest.cpp
+src/SystemConfigurationTest.cpp
+src/UtilTestSuite.cpp
+src/ValidatorTest.cpp
+src/XMLConfigurationTest.cpp
+src/TimerTestSuite.cpp
+src/TimerTest.cpp
+)
+
+set( WIN_TEST_SRCS
+src/WinConfigurationTest.cpp
+src/WinDriver.cpp
+src/WinRegistryTest.cpp
+src/WindowsTestSuite.cpp
+)
+
+set(TESTUNIT "${LIBNAME}-testrunner")
+
+add_executable( ${TESTUNIT} ${TEST_SRCS} )
+#set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${TESTUNIT} PocoUtil PocoXML PocoFoundation CppUnit)
diff --git a/XML/CMakeLists.txt b/XML/CMakeLists.txt
new file mode 100644
index 000000000..a46b247b4
--- /dev/null
+++ b/XML/CMakeLists.txt
@@ -0,0 +1,29 @@
+set(LIBNAME "PocoXML")
+set(LIBNAME "${LIBNAME}${LIB_EXT}")
+
+aux_source_directory(src SRCS)
+
+add_definitions(-D_USRDLL -DXML_NS -DXML_DTD -DHAVE_EXPAT_CONFIG_H -DXML_EXPORTS)
+
+add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
+set_target_properties( ${LIBNAME}
+ PROPERTIES
+ VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
+target_link_libraries( ${LIBNAME} PocoFoundation${LIB_EXT})
+
+install(
+ DIRECTORY include/Poco
+ DESTINATION include
+ PATTERN ".svn" EXCLUDE
+ )
+
+install(
+ TARGETS ${LIBNAME}
+ DESTINATION lib
+ )
+
+if (ENABLE_TESTS)
+ add_subdirectory(samples)
+ add_subdirectory(testsuite)
+endif ()
+
diff --git a/XML/samples/CMakeLists.txt b/XML/samples/CMakeLists.txt
new file mode 100644
index 000000000..659591ff6
--- /dev/null
+++ b/XML/samples/CMakeLists.txt
@@ -0,0 +1,5 @@
+add_subdirectory(DOMParser)
+add_subdirectory(DOMWriter)
+add_subdirectory(PrettyPrint)
+add_subdirectory(SAXParser)
+
diff --git a/XML/samples/DOMParser/CMakeLists.txt b/XML/samples/DOMParser/CMakeLists.txt
new file mode 100644
index 000000000..9d704e5de
--- /dev/null
+++ b/XML/samples/DOMParser/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "DOMParser")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoXML PocoFoundation )
diff --git a/XML/samples/DOMWriter/CMakeLists.txt b/XML/samples/DOMWriter/CMakeLists.txt
new file mode 100644
index 000000000..4d1457623
--- /dev/null
+++ b/XML/samples/DOMWriter/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "DOMWriter")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoXML PocoFoundation )
diff --git a/XML/samples/PrettyPrint/CMakeLists.txt b/XML/samples/PrettyPrint/CMakeLists.txt
new file mode 100644
index 000000000..6097ada61
--- /dev/null
+++ b/XML/samples/PrettyPrint/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "PrettyPrint")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoXML PocoFoundation )
diff --git a/XML/samples/SAXParser/CMakeLists.txt b/XML/samples/SAXParser/CMakeLists.txt
new file mode 100644
index 000000000..4210d33d4
--- /dev/null
+++ b/XML/samples/SAXParser/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "SAXParser")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoXML PocoFoundation )
diff --git a/XML/testsuite/CMakeLists.txt b/XML/testsuite/CMakeLists.txt
new file mode 100644
index 000000000..1c9f09bc9
--- /dev/null
+++ b/XML/testsuite/CMakeLists.txt
@@ -0,0 +1,36 @@
+set( TEST_SRCS
+src/AttributesImplTest.cpp
+src/ChildNodesTest.cpp
+src/DOMTestSuite.cpp
+src/DocumentTest.cpp
+src/DocumentTypeTest.cpp
+src/Driver.cpp
+src/ElementTest.cpp
+src/EventTest.cpp
+src/NamePoolTest.cpp
+src/NameTest.cpp
+src/NamespaceSupportTest.cpp
+src/NodeAppenderTest.cpp
+src/NodeIteratorTest.cpp
+src/NodeTest.cpp
+src/ParserWriterTest.cpp
+src/SAXParserTest.cpp
+src/SAXTestSuite.cpp
+src/TextTest.cpp
+src/TreeWalkerTest.cpp
+src/XMLTestSuite.cpp
+src/XMLWriterTest.cpp
+)
+
+#include_directories()
+
+set( WIN_TEST_SRCS
+src/WinDriver.cpp
+)
+
+set(TESTUNIT "${LIBNAME}-testrunner")
+
+add_executable( ${TESTUNIT} ${TEST_SRCS} )
+#set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${TESTUNIT} PocoXML PocoFoundation CppUnit)
+
diff --git a/Zip/CMakeLists.txt b/Zip/CMakeLists.txt
new file mode 100644
index 000000000..47cb72ed4
--- /dev/null
+++ b/Zip/CMakeLists.txt
@@ -0,0 +1,31 @@
+set(LIBNAME "PocoZip")
+set(LIBNAME "${LIBNAME}${LIB_EXT}")
+
+aux_source_directory(src SRCS)
+
+if (NOT POCO_STATIC)
+ add_definitions(-DZip_EXPORTS)
+endif (NOT POCO_STATIC)
+
+add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
+set_target_properties( ${LIBNAME}
+ PROPERTIES
+ VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
+target_link_libraries( ${LIBNAME} PocoUtil${LIB_EXT} PocoXML${LIB_EXT} PocoFoundation${LIB_EXT})
+
+install(
+ DIRECTORY include/Poco
+ DESTINATION include
+ PATTERN ".svn" EXCLUDE
+ )
+
+install(
+ TARGETS ${LIBNAME}
+ DESTINATION lib
+ )
+
+if (ENABLE_TESTS)
+ add_subdirectory(samples)
+ add_subdirectory(testsuite)
+endif ()
+
diff --git a/Zip/samples/CMakeLists.txt b/Zip/samples/CMakeLists.txt
new file mode 100644
index 000000000..459b10b0c
--- /dev/null
+++ b/Zip/samples/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_subdirectory( zip )
+add_subdirectory( unzip )
diff --git a/Zip/samples/unzip/CMakeLists.txt b/Zip/samples/unzip/CMakeLists.txt
new file mode 100644
index 000000000..9fda9b453
--- /dev/null
+++ b/Zip/samples/unzip/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "unzip")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoZip PocoUtil PocoXML PocoFoundation )
diff --git a/Zip/samples/zip/CMakeLists.txt b/Zip/samples/zip/CMakeLists.txt
new file mode 100644
index 000000000..254afa73b
--- /dev/null
+++ b/Zip/samples/zip/CMakeLists.txt
@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "zip")
+
+set(LOCAL_SRCS "")
+aux_source_directory(src LOCAL_SRCS)
+
+add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
+#set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${SAMPLE_NAME} PocoZip PocoUtil PocoXML PocoFoundation )
diff --git a/Zip/testsuite/CMakeLists.txt b/Zip/testsuite/CMakeLists.txt
new file mode 100644
index 000000000..c50fe8d2c
--- /dev/null
+++ b/Zip/testsuite/CMakeLists.txt
@@ -0,0 +1,20 @@
+set( TEST_SRCS
+src/CompressTest.cpp
+src/Driver.cpp
+src/PartialStreamTest.cpp
+src/ZipTest.cpp
+src/ZipTestSuite.cpp
+)
+
+#include_directories()
+
+set( WIN_TEST_SRCS
+src/WinDriver.cpp
+)
+
+set(TESTUNIT "${LIBNAME}-testrunner")
+
+add_executable( ${TESTUNIT} ${TEST_SRCS} )
+#set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
+target_link_libraries( ${TESTUNIT} PocoZip PocoNet PocoFoundation CppUnit )
+
diff --git a/contrib/cmake/FindAPR.cmake b/contrib/cmake/FindAPR.cmake
new file mode 100644
index 000000000..3a7a11ca3
--- /dev/null
+++ b/contrib/cmake/FindAPR.cmake
@@ -0,0 +1,94 @@
+# -*- cmake -*-
+
+# - Find Apache Portable Runtime
+# Find the APR includes and libraries
+# This module defines
+# APR_INCLUDE_DIR and APRUTIL_INCLUDE_DIR, where to find apr.h, etc.
+# APR_LIBRARIES and APRUTIL_LIBRARIES, the libraries needed to use APR.
+# APR_FOUND and APRUTIL_FOUND, If false, do not try to use APR.
+# also defined, but not for general use are
+# APR_LIBRARY and APRUTIL_LIBRARY, where to find the APR library.
+
+# APR first.
+
+FIND_PATH(APR_INCLUDE_DIR apr.h
+/usr/local/include/apr-1
+/usr/local/include/apr-1.0
+/usr/include/apr-1
+/usr/include/apr-1.0
+)
+
+SET(APR_NAMES ${APR_NAMES} apr-1)
+FIND_LIBRARY(APR_LIBRARY
+ NAMES ${APR_NAMES}
+ PATHS /usr/lib /usr/local/lib
+ )
+
+IF (APR_LIBRARY AND APR_INCLUDE_DIR)
+ SET(APR_LIBRARIES ${APR_LIBRARY})
+ SET(APR_FOUND "YES")
+ELSE (APR_LIBRARY AND APR_INCLUDE_DIR)
+ SET(APR_FOUND "NO")
+ENDIF (APR_LIBRARY AND APR_INCLUDE_DIR)
+
+
+IF (APR_FOUND)
+ IF (NOT APR_FIND_QUIETLY)
+ MESSAGE(STATUS "Found APR: ${APR_LIBRARIES}")
+ ENDIF (NOT APR_FIND_QUIETLY)
+ELSE (APR_FOUND)
+ IF (APR_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR "Could not find APR library")
+ ENDIF (APR_FIND_REQUIRED)
+ENDIF (APR_FOUND)
+
+# Deprecated declarations.
+SET (NATIVE_APR_INCLUDE_PATH ${APR_INCLUDE_DIR} )
+GET_FILENAME_COMPONENT (NATIVE_APR_LIB_PATH ${APR_LIBRARY} PATH)
+
+MARK_AS_ADVANCED(
+ APR_LIBRARY
+ APR_INCLUDE_DIR
+ )
+
+# Next, APRUTIL.
+
+FIND_PATH(APRUTIL_INCLUDE_DIR apu.h
+/usr/local/include/apr-1
+/usr/local/include/apr-1.0
+/usr/include/apr-1
+/usr/include/apr-1.0
+)
+
+SET(APRUTIL_NAMES ${APRUTIL_NAMES} aprutil-1)
+FIND_LIBRARY(APRUTIL_LIBRARY
+ NAMES ${APRUTIL_NAMES}
+ PATHS /usr/lib /usr/local/lib
+ )
+
+IF (APRUTIL_LIBRARY AND APRUTIL_INCLUDE_DIR)
+ SET(APRUTIL_LIBRARIES ${APRUTIL_LIBRARY})
+ SET(APRUTIL_FOUND "YES")
+ELSE (APRUTIL_LIBRARY AND APRUTIL_INCLUDE_DIR)
+ SET(APRUTIL_FOUND "NO")
+ENDIF (APRUTIL_LIBRARY AND APRUTIL_INCLUDE_DIR)
+
+
+IF (APRUTIL_FOUND)
+ IF (NOT APRUTIL_FIND_QUIETLY)
+ MESSAGE(STATUS "Found APRUTIL: ${APRUTIL_LIBRARIES}")
+ ENDIF (NOT APRUTIL_FIND_QUIETLY)
+ELSE (APRUTIL_FOUND)
+ IF (APRUTIL_FIND_REQUIRED)
+ MESSAGE(STATUS "Could not find APRUTIL library")
+ ENDIF (APRUTIL_FIND_REQUIRED)
+ENDIF (APRUTIL_FOUND)
+
+# Deprecated declarations.
+SET (NATIVE_APRUTIL_INCLUDE_PATH ${APRUTIL_INCLUDE_DIR} )
+GET_FILENAME_COMPONENT (NATIVE_APRUTIL_LIB_PATH ${APRUTIL_LIBRARY} PATH)
+
+MARK_AS_ADVANCED(
+ APRUTIL_LIBRARY
+ APRUTIL_INCLUDE_DIR
+ )
diff --git a/contrib/cmake/FindApache2.cmake b/contrib/cmake/FindApache2.cmake
new file mode 100644
index 000000000..ea1dd0229
--- /dev/null
+++ b/contrib/cmake/FindApache2.cmake
@@ -0,0 +1,31 @@
+# -*- cmake -*-
+
+# - Find Apache Runtime
+# Find the APACHE includes and libraries
+# This module defines
+# APACHE_INCLUDE_DIR and APACHEUTIL_INCLUDE_DIR, where to find APACHE.h, etc.
+# APACHE_LIBRARIES and APACHEUTIL_LIBRARIES, the libraries needed to use APACHE.
+# APACHE_FOUND and APACHEUTIL_FOUND, If false, do not try to use APACHE.
+# also defined, but not for general use are
+# APACHE_LIBRARY and APACHEUTIL_LIBRARY, where to find the APACHE library.
+
+FIND_PATH(APACHE_INCLUDE_DIR httpd.h
+/usr/local/include/apache2
+/usr/include/apache2
+)
+
+IF (APACHE_INCLUDE_DIR)
+ SET(APACHE_FOUND "YES")
+ELSE (APACHE_LIBRARY AND APACHE_INCLUDE_DIR)
+ SET(APACHE_FOUND "NO")
+ENDIF (APACHE_INCLUDE_DIR)
+
+
+IF (APACHE_FOUND)
+ MESSAGE(STATUS "Found APACHE: ${APACHE_INCLUDE_DIR}")
+ENDIF (APACHE_FOUND)
+
+MARK_AS_ADVANCED(
+ APACHE_INCLUDE_DIR
+ )
+
diff --git a/contrib/cmake/FindMySQL.cmake b/contrib/cmake/FindMySQL.cmake
new file mode 100644
index 000000000..c8a9b1b8c
--- /dev/null
+++ b/contrib/cmake/FindMySQL.cmake
@@ -0,0 +1,55 @@
+find_path(MYSQL_INCLUDE_DIR mysql.h
+ /usr/include/mysql
+ /usr/local/include/mysql
+ /opt/mysql/mysql/include
+ /opt/mysql/mysql/include/mysql
+ /usr/local/mysql/include
+ /usr/local/mysql/include/mysql
+ $ENV{MYSQL_INCLUDE_DIR}
+ $ENV{MYSQL_DIR}/include
+ $ENV{ProgramFiles}/MySQL/*/include
+ $ENV{SystemDrive}/MySQL/*/include)
+
+if (WIN32)
+ if (CMAKE_BUILD_TYPE STREQUAL Debug)
+ set(libsuffixDist debug)
+ set(libsuffixBuild Debug)
+ else (CMAKE_BUILD_TYPE STREQUAL Debug)
+ set(libsuffixDist opt)
+ set(libsuffixBuild Release)
+ add_definitions(-DDBUG_OFF)
+ endif (CMAKE_BUILD_TYPE STREQUAL Debug)
+
+ find_library(MYSQL_LIB NAMES mysqlclient
+ PATHS
+ $ENV{MYSQL_DIR}/lib/${libsuffixDist}
+ $ENV{MYSQL_DIR}/libmysql/${libsuffixBuild}
+ $ENV{MYSQL_DIR}/client/${libsuffixBuild}
+ $ENV{ProgramFiles}/MySQL/*/lib/${libsuffixDist}
+ $ENV{SystemDrive}/MySQL/*/lib/${libsuffixDist})
+else (WIN32)
+ find_library(MYSQL_LIB NAMES mysqlclient_r
+ PATHS
+ /usr/lib/mysql
+ /usr/local/lib/mysql
+ /usr/local/mysql/lib
+ /usr/local/mysql/lib/mysql
+ /opt/mysql/mysql/lib
+ /opt/mysql/mysql/lib/mysql
+ $ENV{MYSQL_DIR}/libmysql_r/.libs
+ $ENV{MYSQL_DIR}/lib
+ $ENV{MYSQL_DIR}/lib/mysql)
+endif (WIN32)
+
+if(MYSQL_LIB)
+ get_filename_component(MYSQL_LIB_DIR ${MYSQL_LIB} PATH)
+endif(MYSQL_LIB)
+
+if (MYSQL_INCLUDE_DIR AND MYSQL_LIB_DIR)
+ set(MYSQL_FOUND TRUE)
+ message(STATUS "MySQL Include directory: ${MYSQL_INCLUDE_DIR} library directory: ${MYSQL_LIB_DIR}")
+ include_directories(${MYSQL_INCLUDE_DIR})
+ link_directories(${MYSQL_LIB_DIR})
+else (MYSQL_INCLUDE_DIR AND MYSQL_LIB_DIR)
+ message(STATUS "Couldn't find MySQL")
+endif (MYSQL_INCLUDE_DIR AND MYSQL_LIB_DIR)
diff --git a/contrib/cmake/FindODBC.cmake b/contrib/cmake/FindODBC.cmake
new file mode 100644
index 000000000..cc1c6f721
--- /dev/null
+++ b/contrib/cmake/FindODBC.cmake
@@ -0,0 +1,35 @@
+# check for location of odbc_config
+find_program(UNIX_ODBC_CONFIG odbc_config
+ $ENV{ODBC_PATH}/bin
+ /usr/bin
+ /usr/local/bin
+ PATHS)
+
+if(${UNIX_ODBC_CONFIG} MATCHES "UNIX_ODBC_CONFIG-NOTFOUND")
+ message(STATUS "Couldn't find unixODBC")
+else(${UNIX_ODBC_CONFIG} MATCHES "UNIX_ODBC_CONFIG-NOTFOUND")
+ message(STATUS "Found unixODBC: odbc_config in ${UNIX_ODBC_CONFIG}")
+ exec_program(${UNIX_ODBC_CONFIG} ARGS "--include-prefix" OUTPUT_VARIABLE ODBC_INCLUDE_DIR)
+ include_directories(${ODBC_INCLUDE_DIR})
+ exec_program(${UNIX_ODBC_CONFIG} ARGS "--libs" OUTPUT_VARIABLE ODBC_LINK_FLAGS)
+ add_definitions(-DPOCO_UNIXODBC)
+endif(${UNIX_ODBC_CONFIG} MATCHES "UNIX_ODBC_CONFIG-NOTFOUND")
+
+find_program(IODBC_CONFIG iodbc-config
+ $ENV{ODBC_PATH}/bin
+ /usr/bin
+ /usr/local/bin
+ PATHS)
+
+if(${IODBC_CONFIG} MATCHES "IODBC_CONFIG-NOTFOUND")
+ message(STATUS "Couldn't find iODBC")
+else(${IODBC_CONFIG} MATCHES "IODBC_CONFIG-NOTFOUND")
+ message(STATUS "Found iODBC: iodbc-config in ${IODBC_CONFIG}")
+ exec_program(${IODBC_CONFIG} ARGS "--cflags" OUTPUT_VARIABLE ODBC_CFLAGS)
+ add_definitions( ${ODBC_CFLAGS} )
+ exec_program(${IODBC_CONFIG} ARGS "--libs" OUTPUT_VARIABLE ODBC_LINK_FLAGS)
+ add_definitions(-DPOCO_IODBC)
+endif(${IODBC_CONFIG} MATCHES "IODBC_CONFIG-NOTFOUND")
+
+message(STATUS "UNIX ODBC: ${UNIX_ODBC_CONFIG}")
+message(STATUS "IODBC: ${IODBC_CONFIG}")
diff --git a/contrib/cmake/FindPostgreSQL.cmake b/contrib/cmake/FindPostgreSQL.cmake
new file mode 100644
index 000000000..6c383f0e3
--- /dev/null
+++ b/contrib/cmake/FindPostgreSQL.cmake
@@ -0,0 +1,66 @@
+# - Find libpq
+# Find the native PostgreSQL includes and library
+#
+# PGSQL_INCLUDE_DIR - where to find libpq-fe.h, etc.
+# PGSQL_LIBRARIES - List of libraries when using PGSQL.
+# PGSQL_FOUND - True if PGSQL found.
+
+MACRO(FIND_PGSQL)
+IF (PGSQL_INCLUDE_DIR)
+ # Already in cache, be silent
+ SET(PostgreSQL_FIND_QUIETLY TRUE)
+ENDIF (PGSQL_INCLUDE_DIR)
+
+FIND_PATH(PGSQL_INCLUDE_DIR libpq-fe.h
+ $ENV{ProgramFiles}/PostgreSQL/*/include
+ $ENV{SystemDrive}/PostgreSQL/*/include
+ /usr/local/pgsql/include
+ /usr/local/postgresql/include
+ /usr/local/include/pgsql
+ /usr/local/include/postgresql
+ /usr/local/include
+ /usr/include/pgsql
+ /usr/include/postgresql
+ /usr/include
+ /usr/pgsql/include
+ /usr/postgresql/include
+)
+
+SET(PGSQL_NAMES pq libpq)
+SET(PGSQL_SEARCH_LIB_PATHS
+ ${PGSQL_SEARCH_LIB_PATHS}
+ $ENV{ProgramFiles}/PostgreSQL/*/lib
+ $ENV{SystemDrive}/PostgreSQL/*/lib
+ /usr/local/pgsql/lib
+ /usr/local/lib
+ /usr/lib
+)
+FIND_LIBRARY(PGSQL_LIBRARY
+ NAMES ${PGSQL_NAMES}
+ PATHS ${PGSQL_SEARCH_LIB_PATHS}
+)
+
+IF (PGSQL_INCLUDE_DIR AND PGSQL_LIBRARY)
+ SET(PGSQL_FOUND TRUE)
+ SET( PGSQL_LIBRARIES ${PGSQL_LIBRARY} )
+ELSE (PGSQL_INCLUDE_DIR AND PGSQL_LIBRARY)
+ SET(PGSQL_FOUND FALSE)
+ SET( PGSQL_LIBRARIES )
+ENDIF (PGSQL_INCLUDE_DIR AND PGSQL_LIBRARY)
+
+IF (PGSQL_FOUND)
+ IF (NOT PostgreSQL_FIND_QUIETLY)
+ MESSAGE(STATUS "Found PostgreSQL: ${PGSQL_LIBRARY}")
+ ENDIF (NOT PostgreSQL_FIND_QUIETLY)
+ELSE (PGSQL_FOUND)
+ IF (PostgreSQL_FIND_REQUIRED)
+ MESSAGE(STATUS "Looked for PostgreSQL libraries named ${PGSQL_NAMES}.")
+ MESSAGE(FATAL_ERROR "Could NOT find PostgreSQL library")
+ ENDIF (PostgreSQL_FIND_REQUIRED)
+ENDIF (PGSQL_FOUND)
+
+MARK_AS_ADVANCED(
+ PGSQL_LIBRARY
+ PGSQL_INCLUDE_DIR
+)
+ENDMACRO(FIND_PGSQL)
\ No newline at end of file
diff --git a/contrib/cmake/cmake_uninstall.cmake.in b/contrib/cmake/cmake_uninstall.cmake.in
new file mode 100644
index 000000000..03137d5af
--- /dev/null
+++ b/contrib/cmake/cmake_uninstall.cmake.in
@@ -0,0 +1,22 @@
+IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
+ MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
+ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
+
+FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
+STRING(REGEX REPLACE "\n" ";" files "${files}")
+FOREACH(file ${files})
+ MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
+ IF(EXISTS "$ENV{DESTDIR}${file}")
+ EXEC_PROGRAM(
+ "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
+ OUTPUT_VARIABLE rm_out
+ RETURN_VALUE rm_retval
+ )
+ IF("${rm_retval}" STREQUAL 0)
+ ELSE("${rm_retval}" STREQUAL 0)
+ MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
+ ENDIF("${rm_retval}" STREQUAL 0)
+ ELSE(EXISTS "$ENV{DESTDIR}${file}")
+ MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
+ ENDIF(EXISTS "$ENV{DESTDIR}${file}")
+ENDFOREACH(file)