Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

0.9 devel#270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deanberris merged 3 commits intocpp-netlib:0.9-develfromtjadevries:0.9-devel
Jul 6, 2013
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletionCMakeLists.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,17 @@

cmake_minimum_required(VERSION 2.8)
project(CPP-NETLIB)
set(Boost_USE_STATIC_LIBS ON)

option (BOOST_DYN_LINK
"Build the project using dynamic linking for the boost testing libs"
OFF)
if (BOOST_DYN_LINK)
message ("Linking boost testing libs dynamically...")
add_definitions(-DBOOST_TEST_DYN_LINK)
elseif (BOOST_DYN_LINK)
set(Boost_USE_STATIC_LIBS ON)
endif(BOOST_DYN_LINK)

set(Boost_USE_MULTI_THREADED ON)
find_package( Boost 1.45.0 REQUIRED unit_test_framework system regex date_time thread filesystem program_options chrono )
find_package( OpenSSL )
Expand Down
12 changes: 11 additions & 1 deletionlibs/mime/test/CMakeLists.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
include_directories(${CPP-NETLIB_SOURCE_DIR})
find_package ( Boost 1.41.0 COMPONENTS unit_test_framework )
set ( Boost_USE_STATIC_LIBS ON )

option (BOOST_DYN_LINK
"Build the project using dynamic linking for the boost test libs"
OFF)
if (BOOST_DYN_LINK)
message ("Do not try to link boost test libs dynamically for this test...")
remove_definitions(-DBOOST_TEST_DYN_LINK)
elseif (BOOST_DYN_LINK)
set(Boost_USE_STATIC_LIBS ON)
endif(BOOST_DYN_LINK)

set ( Boost_USE_MULTITHREADED ON )

if ( Boost_FOUND )
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
#define BOOST_TEST_MODULE HTTP Asynchronous Server Tests
#ifdef BOOST_TEST_DYN_LINK
#define BOOST_TEST_NO_MAIN
#endif /* BOOST_TEST_DYN_LINK */

#include <boost/network/include/http/server.hpp>
#include <boost/test/unit_test.hpp>
Expand DownExpand Up@@ -135,3 +138,6 @@ int main(int argc, char * argv[]) {

return 0;
}
#ifdef BOOST_TEST_DYN_LINK
#undef BOOST_TEST_NO_MAIN
#endif /* BOOST_TEST_DYN_LINK */

[8]ページ先頭

©2009-2025 Movatter.jp