Browse files

Moved mime to a separate subdirectory.

  • Loading branch information...
1 parent 65b99b8 commit 6f51e0433c8cfc939d3f117d4edc774acdc165e4 @glynos glynos committed Dec 29, 2012
View
1 CMakeLists.txt
@@ -112,3 +112,4 @@ add_subdirectory(message)
add_subdirectory(logging)
add_subdirectory(concurrency)
add_subdirectory(http)
+add_subdirectory(mime)
View
8 libs/mime/test/CMakeLists.txt
@@ -1,8 +0,0 @@
-include_directories(${CPP-NETLIB_SOURCE_DIR})
-
-if ( Boost_FOUND )
- add_executable ( mime-roundtrip mime-roundtrip.cpp )
- target_link_libraries ( mime-roundtrip )
- add_test ( mime-roundtrip mime-roundtrip )
-endif ()
-
View
10 mime/CMakeLists.txt
@@ -0,0 +1,10 @@
+# Copyright (c) Glyn Matthews 2012.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+
+if(CPP-NETLIB_BUILD_TESTS)
+ enable_testing()
+ add_subdirectory(test)
+endif(CPP-NETLIB_BUILD_TESTS)
View
0 libs/mime/To-Do.txt → mime/To-Do.txt
File renamed without changes.
View
0 libs/mime/doc/Jamfile.v2 → mime/doc/Jamfile.v2
File renamed without changes.
View
0 libs/mime/doc/mime.qbk → mime/doc/mime.qbk
File renamed without changes.
View
0 libs/mime/doc/quick_start.qbk → mime/doc/quick_start.qbk
File renamed without changes.
View
0 libs/mime/example/Jamfile.v2 → mime/example/Jamfile.v2
File renamed without changes.
View
0 libs/mime/example/basic_parsing.cpp → mime/example/basic_parsing.cpp
File renamed without changes.
View
0 libs/mime/example/basic_usage.cpp → mime/example/basic_usage.cpp
File renamed without changes.
View
0 boost/mime.hpp → mime/src/boost/mime.hpp
File renamed without changes.
View
21 mime/test/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Copyright (c) Glyn Matthews 2012.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
+if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
+ set(CPP-NETLIB_CXXFLAGS "-Wall -std=c++11")
+elseif (${CMAKE_CXX_COMPILER_ID} MATCHES Clang)
+ CHECK_CXX_COMPILER_FLAG(-std=c++11 HAVE_STD11)
+ set(CPP-NETLIB_CXXFLAGS "-Wall -std=c++11 -stdlib=libc++")
+ set(CPP-NETLIB_CXXFLAGS "-Wall -std=c++11 -stdlib=libc++")
+endif()
+
+include_directories(${CPP-NETLIB_SOURCE_DIR}/mime/src)
+
+if ( Boost_FOUND )
+ add_executable ( mime-roundtrip mime-roundtrip.cpp )
+ target_link_libraries ( mime-roundtrip )
+ add_test ( mime-roundtrip mime-roundtrip )
+endif ()
+
View
0 libs/mime/test/Jamfile.v2 → mime/test/Jamfile.v2
File renamed without changes.
View
0 libs/mime/test/TestMessages/.gitattributes → mime/test/TestMessages/.gitattributes
File renamed without changes.
View
0 libs/mime/test/TestMessages/00000001 → mime/test/TestMessages/00000001
File renamed without changes.
View
0 libs/mime/test/TestMessages/00000019 → mime/test/TestMessages/00000019
File renamed without changes.
View
0 libs/mime/test/TestMessages/00000431 → mime/test/TestMessages/00000431
File renamed without changes.
View
0 libs/mime/test/TestMessages/00000975 → mime/test/TestMessages/00000975
File renamed without changes.
View
0 libs/mime/test/TestMessages/0019-NoBoundary → mime/test/TestMessages/0019-NoBoundary
File renamed without changes.
View
0 libs/mime/test/mime-roundtrip.cpp → mime/test/mime-roundtrip.cpp
File renamed without changes.
View
0 libs/mime/test/mime-structure.cpp → mime/test/mime-structure.cpp
File renamed without changes.
View
0 libs/mime/test/mimeParse.py → mime/test/mimeParse.py
File renamed without changes.

0 comments on commit 6f51e04

Please sign in to comment.