Skip to content

Commit

Permalink
Moved mime to a separate subdirectory.
Browse files Browse the repository at this point in the history
  • Loading branch information
glynos committed Dec 29, 2012
1 parent 65b99b8 commit 6f51e04
Show file tree
Hide file tree
Showing 22 changed files with 32 additions and 8 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -112,3 +112,4 @@ add_subdirectory(message)
add_subdirectory(logging) add_subdirectory(logging)
add_subdirectory(concurrency) add_subdirectory(concurrency)
add_subdirectory(http) add_subdirectory(http)
add_subdirectory(mime)
8 changes: 0 additions & 8 deletions libs/mime/test/CMakeLists.txt

This file was deleted.

10 changes: 10 additions & 0 deletions 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)
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.
21 changes: 21 additions & 0 deletions 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 ()

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.
File renamed without changes.
File renamed without changes.

0 comments on commit 6f51e04

Please sign in to comment.