@@ -9,7 +9,6 @@ project(CPP-NETLIB)
9
9
10
10
option ( CPP-NETLIB_BUILD_SHARED_LIBS "Build cpp-netlib as shared libraries." OFF )
11
11
option ( CPP-NETLIB_BUILD_TESTS "Build the cpp-netlib project tests." ON )
12
- # option( CPP-NETLIB_BUILD_EXPERIMENTS "Build the cpp-netlib project experiments." ON)
13
12
option ( CPP-NETLIB_BUILD_EXAMPLES "Build the cpp-netlib project examples." ON )
14
13
option ( CPP-NETLIB_ENABLE_HTTPS "Build cpp-netlib with support for https if OpenSSL is found." ON )
15
14
@@ -49,7 +48,7 @@ set(Boost_USE_MULTI_THREADED ON)
49
48
find_package (Boost 1.57.0 REQUIRED)
50
49
51
50
if (CPP-NETLIB_ENABLE_HTTPS)
52
- find_package ( OpenSSL )
51
+ find_package ( OpenSSL )
53
52
endif ()
54
53
55
54
find_package ( Threads )
@@ -83,6 +82,13 @@ elseif (${CMAKE_CXX_COMPILER_ID} MATCHES Clang)
83
82
endif ()
84
83
endif ()
85
84
85
+ if (NOT MSVC )
86
+ set (Uri_BUILD_TESTS OFF )
87
+ set (Uri_BUILD_DOCS OFF )
88
+ set (Uri_DISABLE_LIBCXX ON )
89
+ add_subdirectory (deps/uri)
90
+ include_directories (deps/uri/include )
91
+ endif ()
86
92
87
93
if (Boost_FOUND)
88
94
if (MSVC )
@@ -102,13 +108,8 @@ if (Boost_FOUND)
102
108
if (CPP-NETLIB_BUILD_TESTS)
103
109
add_subdirectory (deps/googletest)
104
110
add_subdirectory (libs/network/test )
111
+ add_subdirectory (deps/uri/test )
105
112
endif (CPP-NETLIB_BUILD_TESTS)
106
- # if (CPP-NETLIB_BUILD_EXPERIMENTS)
107
- # add_subdirectory(libs/network/experiment)
108
- # endif (CPP-NETLIB_BUILD_EXPERIMENTS)
109
- # if (NOT MSVC AND CPP-NETLIB_BUILD_TESTS)
110
- # add_subdirectory(libs/mime/test)
111
- # endif(NOT MSVC AND CPP-NETLIB_BUILD_TESTS)
112
113
if (CPP-NETLIB_BUILD_EXAMPLES)
113
114
add_subdirectory (libs/network/example)
114
115
endif (CPP-NETLIB_BUILD_EXAMPLES)
0 commit comments