Skip to content

Commit 6f51e04

Browse files
committed
Moved mime to a separate subdirectory.
1 parent 65b99b8 commit 6f51e04

22 files changed

+32
-8
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,4 @@ add_subdirectory(message)
112112
add_subdirectory(logging)
113113
add_subdirectory(concurrency)
114114
add_subdirectory(http)
115+
add_subdirectory(mime)

libs/mime/test/CMakeLists.txt

-8
This file was deleted.

mime/CMakeLists.txt

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) Glyn Matthews 2012.
2+
# Distributed under the Boost Software License, Version 1.0.
3+
# (See accompanying file LICENSE_1_0.txt or copy at
4+
# http://www.boost.org/LICENSE_1_0.txt)
5+
6+
7+
if(CPP-NETLIB_BUILD_TESTS)
8+
enable_testing()
9+
add_subdirectory(test)
10+
endif(CPP-NETLIB_BUILD_TESTS)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

mime/test/CMakeLists.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright (c) Glyn Matthews 2012.
2+
# Distributed under the Boost Software License, Version 1.0.
3+
# (See accompanying file LICENSE_1_0.txt or copy at
4+
# http://www.boost.org/LICENSE_1_0.txt)
5+
6+
if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
7+
set(CPP-NETLIB_CXXFLAGS "-Wall -std=c++11")
8+
elseif (${CMAKE_CXX_COMPILER_ID} MATCHES Clang)
9+
CHECK_CXX_COMPILER_FLAG(-std=c++11 HAVE_STD11)
10+
set(CPP-NETLIB_CXXFLAGS "-Wall -std=c++11 -stdlib=libc++")
11+
set(CPP-NETLIB_CXXFLAGS "-Wall -std=c++11 -stdlib=libc++")
12+
endif()
13+
14+
include_directories(${CPP-NETLIB_SOURCE_DIR}/mime/src)
15+
16+
if ( Boost_FOUND )
17+
add_executable ( mime-roundtrip mime-roundtrip.cpp )
18+
target_link_libraries ( mime-roundtrip )
19+
add_test ( mime-roundtrip mime-roundtrip )
20+
endif ()
21+
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)