Ver Fonte

added cmake support

Marian Krivos há 13 anos atrás
pai
commit
114de565ff
100 ficheiros alterados com 2868 adições e 9 exclusões
  1. 13 0
      ApacheConnector/CMakeLists.txt
  2. 2 0
      ApacheConnector/samples/CMakeLists.txt
  3. 8 0
      ApacheConnector/samples/FormServer/CMakeLists.txt
  4. 8 0
      ApacheConnector/samples/TimeServer/CMakeLists.txt
  5. 11 0
      CppUnit/CMakeLists.txt
  6. 33 0
      Crypto/CMakeLists.txt
  7. 1 0
      Crypto/samples/CMakeLists.txt
  8. 8 0
      Crypto/samples/genrsakey/CMakeLists.txt
  9. 19 0
      Crypto/testsuite/CMakeLists.txt
  10. 1 1
      Data/MySQL/testsuite/CMakeLists.txt
  11. 1 1
      Data/ODBC/testsuite/CMakeLists.txt
  12. 1 1
      Data/SQLite/testsuite/CMakeLists.txt
  13. 1 1
      Data/samples/Binding/CMakeLists.txt
  14. 1 1
      Data/samples/RecordSet/CMakeLists.txt
  15. 1 1
      Data/samples/RowFormatter/CMakeLists.txt
  16. 1 1
      Data/samples/Tuple/CMakeLists.txt
  17. 1 1
      Data/samples/TypeHandler/CMakeLists.txt
  18. 1 1
      Data/testsuite/CMakeLists.txt
  19. 222 0
      Foundation/CMakeLists.txt
  20. 8 0
      Foundation/samples/ActiveMethod/CMakeLists.txt
  21. 8 0
      Foundation/samples/Activity/CMakeLists.txt
  22. 8 0
      Foundation/samples/BinaryReaderWriter/CMakeLists.txt
  23. 20 0
      Foundation/samples/CMakeLists.txt
  24. 8 0
      Foundation/samples/DateTime/CMakeLists.txt
  25. 8 0
      Foundation/samples/LogRotation/CMakeLists.txt
  26. 8 0
      Foundation/samples/Logger/CMakeLists.txt
  27. 8 0
      Foundation/samples/NotificationQueue/CMakeLists.txt
  28. 8 0
      Foundation/samples/StringTokenizer/CMakeLists.txt
  29. 8 0
      Foundation/samples/Timer/CMakeLists.txt
  30. 8 0
      Foundation/samples/URI/CMakeLists.txt
  31. 8 0
      Foundation/samples/base64decode/CMakeLists.txt
  32. 8 0
      Foundation/samples/base64encode/CMakeLists.txt
  33. 8 0
      Foundation/samples/deflate/CMakeLists.txt
  34. 8 0
      Foundation/samples/dir/CMakeLists.txt
  35. 8 0
      Foundation/samples/grep/CMakeLists.txt
  36. 8 0
      Foundation/samples/hmacmd5/CMakeLists.txt
  37. 8 0
      Foundation/samples/inflate/CMakeLists.txt
  38. 8 0
      Foundation/samples/md5/CMakeLists.txt
  39. 8 0
      Foundation/samples/uuidgen/CMakeLists.txt
  40. 152 0
      Foundation/testsuite/CMakeLists.txt
  41. 31 0
      JSON/CMakeLists.txt
  42. 8 0
      JSON/samples/BenchmarkApp/CMakeLists.txt
  43. 1 0
      JSON/samples/CMakeLists.txt
  44. 20 0
      JSON/testsuite/CMakeLists.txt
  45. 44 0
      Net/CMakeLists.txt
  46. 14 0
      Net/samples/CMakeLists.txt
  47. 8 0
      Net/samples/EchoServer/CMakeLists.txt
  48. 8 0
      Net/samples/HTTPFormServer/CMakeLists.txt
  49. 8 0
      Net/samples/HTTPLoadTest/CMakeLists.txt
  50. 8 0
      Net/samples/HTTPTimeServer/CMakeLists.txt
  51. 8 0
      Net/samples/Mail/CMakeLists.txt
  52. 8 0
      Net/samples/Ping/CMakeLists.txt
  53. 8 0
      Net/samples/TimeServer/CMakeLists.txt
  54. 8 0
      Net/samples/TwitterClient/CMakeLists.txt
  55. 8 0
      Net/samples/WebSocketServer/CMakeLists.txt
  56. 8 0
      Net/samples/dict/CMakeLists.txt
  57. 8 0
      Net/samples/download/CMakeLists.txt
  58. 8 0
      Net/samples/httpget/CMakeLists.txt
  59. 71 0
      Net/testsuite/CMakeLists.txt
  60. 32 0
      NetSSL_OpenSSL/CMakeLists.txt
  61. 2 0
      NetSSL_OpenSSL/samples/CMakeLists.txt
  62. 8 0
      NetSSL_OpenSSL/samples/HTTPSTimeServer/CMakeLists.txt
  63. 8 0
      NetSSL_OpenSSL/samples/Mail/CMakeLists.txt
  64. 8 0
      NetSSL_OpenSSL/samples/download/CMakeLists.txt
  65. 25 0
      NetSSL_OpenSSL/testsuite/CMakeLists.txt
  66. 32 0
      PDF/CMakeLists.txt
  67. 2 0
      PDF/samples/CMakeLists.txt
  68. 8 0
      PDF/samples/Image/CMakeLists.txt
  69. 8 0
      PDF/samples/Text/CMakeLists.txt
  70. 20 0
      PDF/testsuite/CMakeLists.txt
  71. 66 0
      Util/CMakeLists.txt
  72. 4 0
      Util/samples/CMakeLists.txt
  73. 8 0
      Util/samples/SampleApp/CMakeLists.txt
  74. 8 0
      Util/samples/SampleServer/CMakeLists.txt
  75. 8 0
      Util/samples/Units/CMakeLists.txt
  76. 17 0
      Util/samples/Units/Makefile
  77. 263 0
      Util/samples/Units/Units_vs71.vcproj
  78. 390 0
      Util/samples/Units/Units_vs80.vcproj
  79. 375 0
      Util/samples/Units/Units_vs90.vcproj
  80. 114 0
      Util/samples/Units/src/Units.cpp
  81. 8 0
      Util/samples/pkill/CMakeLists.txt
  82. 37 0
      Util/testsuite/CMakeLists.txt
  83. 29 0
      XML/CMakeLists.txt
  84. 5 0
      XML/samples/CMakeLists.txt
  85. 8 0
      XML/samples/DOMParser/CMakeLists.txt
  86. 8 0
      XML/samples/DOMWriter/CMakeLists.txt
  87. 8 0
      XML/samples/PrettyPrint/CMakeLists.txt
  88. 8 0
      XML/samples/SAXParser/CMakeLists.txt
  89. 36 0
      XML/testsuite/CMakeLists.txt
  90. 31 0
      Zip/CMakeLists.txt
  91. 2 0
      Zip/samples/CMakeLists.txt
  92. 8 0
      Zip/samples/unzip/CMakeLists.txt
  93. 8 0
      Zip/samples/zip/CMakeLists.txt
  94. 20 0
      Zip/testsuite/CMakeLists.txt
  95. 94 0
      contrib/cmake/FindAPR.cmake
  96. 31 0
      contrib/cmake/FindApache2.cmake
  97. 55 0
      contrib/cmake/FindMySQL.cmake
  98. 35 0
      contrib/cmake/FindODBC.cmake
  99. 66 0
      contrib/cmake/FindPostgreSQL.cmake
  100. 22 0
      contrib/cmake/cmake_uninstall.cmake.in

+ 13 - 0
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 ()

+ 2 - 0
ApacheConnector/samples/CMakeLists.txt

@@ -0,0 +1,2 @@
+add_subdirectory( FormServer )
+add_subdirectory( TimeServer )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 11 - 0
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} )
+

+ 33 - 0
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 ()

+ 1 - 0
Crypto/samples/CMakeLists.txt

@@ -0,0 +1 @@
+add_subdirectory( genrsakey )

+ 8 - 0
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 )

+ 19 - 0
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)
+

+ 1 - 1
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 )
 

+ 1 - 1
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 )
 

+ 1 - 1
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 )
 

+ 1 - 1
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 )

+ 1 - 1
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 )

+ 1 - 1
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 )

+ 1 - 1
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 )

+ 1 - 1
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 )

+ 1 - 1
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)
 

+ 222 - 0
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 ()
+

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 20 - 0
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
+)

+ 8 - 0
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)

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 152 - 0
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 )
+

+ 31 - 0
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 ()
+

+ 8 - 0
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 )

+ 1 - 0
JSON/samples/CMakeLists.txt

@@ -0,0 +1 @@
+add_subdirectory( BenchmarkApp )

+ 20 - 0
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 )
+

+ 44 - 0
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 ()
+

+ 14 - 0
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)
+

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 71 - 0
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)
+

+ 32 - 0
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 ()
+

+ 2 - 0
NetSSL_OpenSSL/samples/CMakeLists.txt

@@ -0,0 +1,2 @@
+add_subdirectory( HTTPSTimeServer )
+add_subdirectory( download )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 25 - 0
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)
+

+ 32 - 0
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 ()
+

+ 2 - 0
PDF/samples/CMakeLists.txt

@@ -0,0 +1,2 @@
+add_subdirectory( Image )
+add_subdirectory( Text )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 20 - 0
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 )
+

+ 66 - 0
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 ()

+ 4 - 0
Util/samples/CMakeLists.txt

@@ -0,0 +1,4 @@
+add_subdirectory( SampleApp )
+add_subdirectory( SampleServer )
+add_subdirectory( Units )
+add_subdirectory( pkill )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 17 - 0
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

+ 263 - 0
Util/samples/Units/Units_vs71.vcproj

@@ -0,0 +1,263 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="7.10"
+	Name="Units"
+	ProjectGUID="{0CFFC7B0-04F4-4A60-B6E4-84D78EDA2C73}"
+	Keyword="Win32Proj">
+	<Platforms>
+		<Platform
+			Name="Win32"/>
+	</Platforms>
+	<Configurations>
+		<Configuration
+			Name="debug_shared|Win32"
+			OutputDirectory="obj\debug_shared"
+			IntermediateDirectory="obj\debug_shared"
+			ConfigurationType="1"
+			UseOfMFC="2"
+			CharacterSet="2">
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\Util\include"
+				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;POCO_DLL;WINVER=0x0500"
+				MinimalRebuild="TRUE"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				BufferSecurityCheck="TRUE"
+				TreatWChar_tAsBuiltInType="TRUE"
+				ForceConformanceInForLoopScope="TRUE"
+				RuntimeTypeInfo="TRUE"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="TRUE"
+				DebugInformationFormat="4"/>
+			<Tool
+				Name="VCCustomBuildTool"/>
+			<Tool
+				Name="VCLinkerTool"
+				OutputFile="bin/$(ProjectName)d.exe"
+				LinkIncremental="2"
+				AdditionalLibraryDirectories="..\..\..\lib"
+				GenerateDebugInformation="TRUE"
+				ProgramDatabaseFile="bin/$(ProjectName)d.pdb"
+				SubSystem="1"
+				TargetMachine="1"/>
+			<Tool
+				Name="VCMIDLTool"/>
+			<Tool
+				Name="VCPostBuildEventTool"/>
+			<Tool
+				Name="VCPreBuildEventTool"/>
+			<Tool
+				Name="VCPreLinkEventTool"/>
+			<Tool
+				Name="VCResourceCompilerTool"/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"/>
+			<Tool
+				Name="VCWebDeploymentTool"/>
+			<Tool
+				Name="VCManagedWrapperGeneratorTool"/>
+			<Tool
+				Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+		</Configuration>
+		<Configuration
+			Name="release_shared|Win32"
+			OutputDirectory="obj\release_shared"
+			IntermediateDirectory="obj\release_shared"
+			ConfigurationType="1"
+			UseOfMFC="2"
+			CharacterSet="2">
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="4"
+				InlineFunctionExpansion="1"
+				EnableIntrinsicFunctions="TRUE"
+				FavorSizeOrSpeed="1"
+				OmitFramePointers="TRUE"
+				OptimizeForWindowsApplication="TRUE"
+				AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\Util\include"
+				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;POCO_DLL;WINVER=0x0500"
+				StringPooling="TRUE"
+				RuntimeLibrary="2"
+				BufferSecurityCheck="FALSE"
+				TreatWChar_tAsBuiltInType="TRUE"
+				ForceConformanceInForLoopScope="TRUE"
+				RuntimeTypeInfo="TRUE"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="TRUE"
+				DebugInformationFormat="3"/>
+			<Tool
+				Name="VCCustomBuildTool"/>
+			<Tool
+				Name="VCLinkerTool"
+				OutputFile="bin/$(ProjectName).exe"
+				LinkIncremental="1"
+				AdditionalLibraryDirectories="..\..\..\lib"
+				GenerateDebugInformation="FALSE"
+				ProgramDatabaseFile=""
+				SubSystem="1"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"/>
+			<Tool
+				Name="VCMIDLTool"/>
+			<Tool
+				Name="VCPostBuildEventTool"/>
+			<Tool
+				Name="VCPreBuildEventTool"/>
+			<Tool
+				Name="VCPreLinkEventTool"/>
+			<Tool
+				Name="VCResourceCompilerTool"/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"/>
+			<Tool
+				Name="VCWebDeploymentTool"/>
+			<Tool
+				Name="VCManagedWrapperGeneratorTool"/>
+			<Tool
+				Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+		</Configuration>
+		<Configuration
+			Name="debug_static|Win32"
+			OutputDirectory="obj\debug_static"
+			IntermediateDirectory="obj\debug_static"
+			ConfigurationType="1"
+			UseOfMFC="2"
+			CharacterSet="2">
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\Util\include"
+				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;POCO_STATIC;WINVER=0x0500"
+				MinimalRebuild="TRUE"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				BufferSecurityCheck="TRUE"
+				TreatWChar_tAsBuiltInType="TRUE"
+				ForceConformanceInForLoopScope="TRUE"
+				RuntimeTypeInfo="TRUE"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="TRUE"
+				DebugInformationFormat="4"/>
+			<Tool
+				Name="VCCustomBuildTool"/>
+			<Tool
+				Name="VCLinkerTool"
+				OutputFile="bin/$(ProjectName)mtd.exe"
+				LinkIncremental="2"
+				AdditionalLibraryDirectories="..\..\..\lib"
+				GenerateDebugInformation="TRUE"
+				ProgramDatabaseFile="bin/$(ProjectName)mtd.pdb"
+				SubSystem="1"
+				TargetMachine="1"/>
+			<Tool
+				Name="VCMIDLTool"/>
+			<Tool
+				Name="VCPostBuildEventTool"/>
+			<Tool
+				Name="VCPreBuildEventTool"/>
+			<Tool
+				Name="VCPreLinkEventTool"/>
+			<Tool
+				Name="VCResourceCompilerTool"/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"/>
+			<Tool
+				Name="VCWebDeploymentTool"/>
+			<Tool
+				Name="VCManagedWrapperGeneratorTool"/>
+			<Tool
+				Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+		</Configuration>
+		<Configuration
+			Name="release_static|Win32"
+			OutputDirectory="obj\release_static"
+			IntermediateDirectory="obj\release_static"
+			ConfigurationType="1"
+			UseOfMFC="2"
+			CharacterSet="2">
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="4"
+				InlineFunctionExpansion="1"
+				EnableIntrinsicFunctions="TRUE"
+				FavorSizeOrSpeed="1"
+				OmitFramePointers="TRUE"
+				OptimizeForWindowsApplication="TRUE"
+				AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\Util\include"
+				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;POCO_STATIC;WINVER=0x0500"
+				StringPooling="TRUE"
+				RuntimeLibrary="2"
+				BufferSecurityCheck="FALSE"
+				TreatWChar_tAsBuiltInType="TRUE"
+				ForceConformanceInForLoopScope="TRUE"
+				RuntimeTypeInfo="TRUE"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="TRUE"
+				DebugInformationFormat="3"/>
+			<Tool
+				Name="VCCustomBuildTool"/>
+			<Tool
+				Name="VCLinkerTool"
+				OutputFile="bin/$(ProjectName)mt.exe"
+				LinkIncremental="1"
+				AdditionalLibraryDirectories="..\..\..\lib"
+				GenerateDebugInformation="FALSE"
+				ProgramDatabaseFile=""
+				SubSystem="1"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"/>
+			<Tool
+				Name="VCMIDLTool"/>
+			<Tool
+				Name="VCPostBuildEventTool"/>
+			<Tool
+				Name="VCPreBuildEventTool"/>
+			<Tool
+				Name="VCPreLinkEventTool"/>
+			<Tool
+				Name="VCResourceCompilerTool"/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"/>
+			<Tool
+				Name="VCWebDeploymentTool"/>
+			<Tool
+				Name="VCManagedWrapperGeneratorTool"/>
+			<Tool
+				Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Header Files"
+			Filter="">
+		</Filter>
+		<Filter
+			Name="Source Files"
+			Filter="">
+			<File
+				RelativePath=".\src\Units.cpp">
+			</File>
+		</Filter>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>

+ 390 - 0
Util/samples/Units/Units_vs80.vcproj

@@ -0,0 +1,390 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="8.00"
+	Name="Units"
+	ProjectGUID="{68D2608B-1915-4985-A671-1BA101959FA6}"
+	Keyword="Win32Proj"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="debug_shared|Win32"
+			OutputDirectory="obj\debug_shared"
+			IntermediateDirectory="obj\debug_shared"
+			ConfigurationType="1"
+			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+			UseOfMFC="2"
+			CharacterSet="2"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\XML\include;..\..\..\Util\include"
+				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;POCO_DLL;WINVER=0x0500"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				BufferSecurityCheck="true"
+				TreatWChar_tAsBuiltInType="true"
+				ForceConformanceInForLoopScope="true"
+				RuntimeTypeInfo="true"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="true"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="PocoFoundationd.lib PocoXMLd.lib PocoUtild.lib"
+				OutputFile="bin/$(ProjectName)d.exe"
+				LinkIncremental="2"
+				AdditionalLibraryDirectories="..\..\..\lib"
+				GenerateDebugInformation="true"
+				ProgramDatabaseFile="bin/$(ProjectName)d.pdb"
+				SubSystem="1"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCWebDeploymentTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="release_shared|Win32"
+			OutputDirectory="obj\release_shared"
+			IntermediateDirectory="obj\release_shared"
+			ConfigurationType="1"
+			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+			UseOfMFC="2"
+			CharacterSet="2"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="4"
+				InlineFunctionExpansion="1"
+				EnableIntrinsicFunctions="true"
+				FavorSizeOrSpeed="1"
+				OmitFramePointers="true"
+				AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\XML\include;..\..\..\Util\include"
+				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;POCO_DLL;WINVER=0x0500"
+				StringPooling="true"
+				RuntimeLibrary="2"
+				BufferSecurityCheck="false"
+				TreatWChar_tAsBuiltInType="true"
+				ForceConformanceInForLoopScope="true"
+				RuntimeTypeInfo="true"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="true"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="PocoFoundation.lib PocoXML.lib PocoUtil.lib"
+				OutputFile="bin/$(ProjectName).exe"
+				LinkIncremental="1"
+				AdditionalLibraryDirectories="..\..\..\lib"
+				GenerateDebugInformation="false"
+				ProgramDatabaseFile=""
+				SubSystem="1"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCWebDeploymentTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="debug_static|Win32"
+			OutputDirectory=".\obj\debug_static"
+			IntermediateDirectory=".\obj\debug_static"
+			ConfigurationType="1"
+			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+			UseOfMFC="2"
+			CharacterSet="2"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\XML\include;..\..\..\Util\include"
+				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;POCO_STATIC;WINVER=0x0500"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				BufferSecurityCheck="true"
+				TreatWChar_tAsBuiltInType="true"
+				ForceConformanceInForLoopScope="true"
+				RuntimeTypeInfo="true"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="true"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="PocoFoundationmtd.lib PocoXMLmtd.lib PocoUtilmtd.lib advapi32.lib"
+				OutputFile="bin/$(ProjectName)d.exe"
+				LinkIncremental="2"
+				AdditionalLibraryDirectories="..\..\..\lib"
+				GenerateDebugInformation="true"
+				ProgramDatabaseFile="bin/$(ProjectName)d.pdb"
+				SubSystem="1"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCWebDeploymentTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="release_static|Win32"
+			OutputDirectory=".\obj\release_static"
+			IntermediateDirectory=".\obj\release_static"
+			ConfigurationType="1"
+			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
+			UseOfMFC="2"
+			CharacterSet="2"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="4"
+				InlineFunctionExpansion="1"
+				EnableIntrinsicFunctions="true"
+				FavorSizeOrSpeed="1"
+				OmitFramePointers="true"
+				AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\XML\include;..\..\..\Util\include"
+				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;POCO_STATIC;WINVER=0x0500"
+				StringPooling="true"
+				RuntimeLibrary="2"
+				BufferSecurityCheck="false"
+				TreatWChar_tAsBuiltInType="true"
+				ForceConformanceInForLoopScope="true"
+				RuntimeTypeInfo="true"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="true"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="PocoFoundationmt.lib PocoXMLmt.lib PocoUtilmt.lib advapi32.lib"
+				OutputFile="bin/$(ProjectName).exe"
+				LinkIncremental="1"
+				AdditionalLibraryDirectories="..\..\..\lib"
+				GenerateDebugInformation="false"
+				ProgramDatabaseFile=""
+				SubSystem="1"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCWebDeploymentTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Header Files"
+			>
+		</Filter>
+		<Filter
+			Name="Source Files"
+			>
+			<File
+				RelativePath=".\src\Units.cpp"
+				>
+			</File>
+		</Filter>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>

+ 375 - 0
Util/samples/Units/Units_vs90.vcproj

@@ -0,0 +1,375 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="9.00"
+	Name="Units"
+	ProjectGUID="{F0193386-C331-4144-97E6-CA4663A2CDF7}"
+	Keyword="Win32Proj"
+	TargetFrameworkVersion="131072"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="debug_shared|Win32"
+			OutputDirectory="obj\debug_shared"
+			IntermediateDirectory="obj\debug_shared"
+			ConfigurationType="1"
+			UseOfMFC="2"
+			CharacterSet="2"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\XML\include;..\..\..\Util\include"
+				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;POCO_DLL;WINVER=0x0500"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				BufferSecurityCheck="true"
+				TreatWChar_tAsBuiltInType="true"
+				ForceConformanceInForLoopScope="true"
+				RuntimeTypeInfo="true"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				OutputFile="bin/$(ProjectName)d.exe"
+				LinkIncremental="2"
+				AdditionalLibraryDirectories="..\..\..\lib"
+				GenerateDebugInformation="true"
+				ProgramDatabaseFile="bin/$(ProjectName)d.pdb"
+				SubSystem="1"
+				RandomizedBaseAddress="1"
+				DataExecutionPrevention="0"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="release_shared|Win32"
+			OutputDirectory="obj\release_shared"
+			IntermediateDirectory="obj\release_shared"
+			ConfigurationType="1"
+			UseOfMFC="2"
+			CharacterSet="2"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="4"
+				InlineFunctionExpansion="1"
+				EnableIntrinsicFunctions="true"
+				FavorSizeOrSpeed="1"
+				OmitFramePointers="true"
+				AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\XML\include;..\..\..\Util\include"
+				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;POCO_DLL;WINVER=0x0500"
+				StringPooling="true"
+				RuntimeLibrary="2"
+				BufferSecurityCheck="false"
+				TreatWChar_tAsBuiltInType="true"
+				ForceConformanceInForLoopScope="true"
+				RuntimeTypeInfo="true"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				OutputFile="bin/$(ProjectName).exe"
+				LinkIncremental="1"
+				AdditionalLibraryDirectories="..\..\..\lib"
+				GenerateDebugInformation="false"
+				ProgramDatabaseFile=""
+				SubSystem="1"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				RandomizedBaseAddress="1"
+				DataExecutionPrevention="0"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="debug_static|Win32"
+			OutputDirectory=".\obj\debug_static"
+			IntermediateDirectory=".\obj\debug_static"
+			ConfigurationType="1"
+			UseOfMFC="2"
+			CharacterSet="2"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\XML\include;..\..\..\Util\include"
+				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;POCO_STATIC;WINVER=0x0500"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				BufferSecurityCheck="true"
+				TreatWChar_tAsBuiltInType="true"
+				ForceConformanceInForLoopScope="true"
+				RuntimeTypeInfo="true"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				OutputFile="bin/$(ProjectName)mtd.exe"
+				LinkIncremental="2"
+				AdditionalLibraryDirectories="..\..\..\lib"
+				GenerateDebugInformation="true"
+				ProgramDatabaseFile="bin/$(ProjectName)d.pdb"
+				SubSystem="1"
+				RandomizedBaseAddress="1"
+				DataExecutionPrevention="0"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="release_static|Win32"
+			OutputDirectory=".\obj\release_static"
+			IntermediateDirectory=".\obj\release_static"
+			ConfigurationType="1"
+			UseOfMFC="2"
+			CharacterSet="2"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="4"
+				InlineFunctionExpansion="1"
+				EnableIntrinsicFunctions="true"
+				FavorSizeOrSpeed="1"
+				OmitFramePointers="true"
+				AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\XML\include;..\..\..\Util\include"
+				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;POCO_STATIC;WINVER=0x0500"
+				StringPooling="true"
+				RuntimeLibrary="2"
+				BufferSecurityCheck="false"
+				TreatWChar_tAsBuiltInType="true"
+				ForceConformanceInForLoopScope="true"
+				RuntimeTypeInfo="true"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				OutputFile="bin/$(ProjectName)mt.exe"
+				LinkIncremental="1"
+				AdditionalLibraryDirectories="..\..\..\lib"
+				GenerateDebugInformation="false"
+				ProgramDatabaseFile=""
+				SubSystem="1"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				RandomizedBaseAddress="1"
+				DataExecutionPrevention="0"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Header Files"
+			>
+		</Filter>
+		<Filter
+			Name="Source Files"
+			>
+			<File
+				RelativePath=".\src\Units.cpp"
+				>
+			</File>
+		</Filter>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>

+ 114 - 0
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 <iostream>
+
+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<Scale<N, 1, 1000>, Power<m, -3> > SpecificWeight;// [kN/m^3]
+} // namespace Units
+namespace Values {
+typedef Value<double, Units::SpecificWeight> 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;
+}

+ 8 - 0
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 )

+ 37 - 0
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)

+ 29 - 0
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 ()
+

+ 5 - 0
XML/samples/CMakeLists.txt

@@ -0,0 +1,5 @@
+add_subdirectory(DOMParser)
+add_subdirectory(DOMWriter)
+add_subdirectory(PrettyPrint)
+add_subdirectory(SAXParser)
+

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 36 - 0
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)
+

+ 31 - 0
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 ()
+

+ 2 - 0
Zip/samples/CMakeLists.txt

@@ -0,0 +1,2 @@
+add_subdirectory( zip )
+add_subdirectory( unzip )

+ 8 - 0
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 )

+ 8 - 0
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 )

+ 20 - 0
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 )
+

+ 94 - 0
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
+  )

+ 31 - 0
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
+  )
+

+ 55 - 0
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)

+ 35 - 0
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}")

+ 66 - 0
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)

+ 22 - 0
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)