Browse Source

added Data, Foundation, Net and Util samples + some global cmake fixes - second portion

Marian Krivos 17 years ago
parent
commit
24e706aa2a
44 changed files with 353 additions and 0 deletions
  1. 1 0
      Crypto/samples/CMakeLists.txt
  2. 8 0
      Crypto/samples/genrsakey/CMakeLists.txt
  3. 8 0
      Data/samples/Binding/CMakeLists.txt
  4. 5 0
      Data/samples/CMakeLists.txt
  5. 8 0
      Data/samples/RecordSet/CMakeLists.txt
  6. 8 0
      Data/samples/RowFormatter/CMakeLists.txt
  7. 8 0
      Data/samples/Tuple/CMakeLists.txt
  8. 8 0
      Data/samples/TypeHandler/CMakeLists.txt
  9. 8 0
      Foundation/samples/ActiveMethod/CMakeLists.txt
  10. 8 0
      Foundation/samples/Activity/CMakeLists.txt
  11. 8 0
      Foundation/samples/BinaryReaderWriter/CMakeLists.txt
  12. 20 0
      Foundation/samples/CMakeLists.txt
  13. 8 0
      Foundation/samples/DateTime/CMakeLists.txt
  14. 8 0
      Foundation/samples/LogRotation/CMakeLists.txt
  15. 8 0
      Foundation/samples/Logger/CMakeLists.txt
  16. 8 0
      Foundation/samples/NotificationQueue/CMakeLists.txt
  17. 8 0
      Foundation/samples/StringTokenizer/CMakeLists.txt
  18. 8 0
      Foundation/samples/Timer/CMakeLists.txt
  19. 8 0
      Foundation/samples/URI/CMakeLists.txt
  20. 8 0
      Foundation/samples/base64decode/CMakeLists.txt
  21. 8 0
      Foundation/samples/base64encode/CMakeLists.txt
  22. 8 0
      Foundation/samples/deflate/CMakeLists.txt
  23. 8 0
      Foundation/samples/dir/CMakeLists.txt
  24. 8 0
      Foundation/samples/grep/CMakeLists.txt
  25. 8 0
      Foundation/samples/hmacmd5/CMakeLists.txt
  26. 8 0
      Foundation/samples/inflate/CMakeLists.txt
  27. 8 0
      Foundation/samples/md5/CMakeLists.txt
  28. 8 0
      Foundation/samples/uuidgen/CMakeLists.txt
  29. 12 0
      Net/samples/CMakeLists.txt
  30. 8 0
      Net/samples/EchoServer/CMakeLists.txt
  31. 8 0
      Net/samples/HTTPFormServer/CMakeLists.txt
  32. 8 0
      Net/samples/HTTPLoadTest/CMakeLists.txt
  33. 8 0
      Net/samples/HTTPTimeServer/CMakeLists.txt
  34. 8 0
      Net/samples/Mail/CMakeLists.txt
  35. 8 0
      Net/samples/Ping/CMakeLists.txt
  36. 8 0
      Net/samples/SMTPLogger/CMakeLists.txt
  37. 8 0
      Net/samples/TimeServer/CMakeLists.txt
  38. 8 0
      Net/samples/dict/CMakeLists.txt
  39. 8 0
      Net/samples/download/CMakeLists.txt
  40. 8 0
      Net/samples/httpget/CMakeLists.txt
  41. 3 0
      Util/samples/CMakeLists.txt
  42. 8 0
      Util/samples/SampleApp/CMakeLists.txt
  43. 8 0
      Util/samples/SampleServer/CMakeLists.txt
  44. 8 0
      Util/samples/Units/CMakeLists.txt

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

+ 8 - 0
Data/samples/Binding/CMakeLists.txt

@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "Binding")
+
+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} PocoSQLite PocoData PocoFoundation )

+ 5 - 0
Data/samples/CMakeLists.txt

@@ -0,0 +1,5 @@
+add_subdirectory( Binding )
+add_subdirectory( RecordSet )
+add_subdirectory( RowFormatter )
+add_subdirectory( Tuple )
+add_subdirectory( TypeHandler )

+ 8 - 0
Data/samples/RecordSet/CMakeLists.txt

@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "RecordSet")
+
+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} PocoSQLite PocoData PocoFoundation )

+ 8 - 0
Data/samples/RowFormatter/CMakeLists.txt

@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "RowFormatter")
+
+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} PocoSQLite PocoData PocoFoundation )

+ 8 - 0
Data/samples/Tuple/CMakeLists.txt

@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "Tuple")
+
+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} PocoSQLite PocoData PocoFoundation )

+ 8 - 0
Data/samples/TypeHandler/CMakeLists.txt

@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "TypeHandler")
+
+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} PocoSQLite PocoData PocoFoundation )

+ 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 ${RELEASE_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 "String>Tokenizer")
+
+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 )

+ 12 - 0
Net/samples/CMakeLists.txt

@@ -0,0 +1,12 @@
+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(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/SMTPLogger/CMakeLists.txt

@@ -0,0 +1,8 @@
+set(SAMPLE_NAME "SMTPLogger")
+
+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/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 )

+ 3 - 0
Util/samples/CMakeLists.txt

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

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