Skip to content

Commit 378437a

Browse files
author
Peter Thorson
committed
Merge branch 'develop'
2 parents 7f19b6e + cc7d74d commit 378437a

File tree

122 files changed

+4966
-1755
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+4966
-1755
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,7 @@ examples/wsperf/wsperf_client
8888
*.vcxproj.filters
8989
*.user
9090
install
91+
Makefile
92+
bin
93+
94+
Testing/Temporary/CTestCostData.txt

.travis.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,16 @@ language: cpp
22
compiler:
33
- gcc
44
before_install:
5-
- sudo apt-get install libboost-chrono1.48-dev libboost-regex1.48-dev libboost-system1.48-dev libboost-thread1.48-dev libboost-test1.48-dev libboost-random1.48-dev -y
5+
#- sudo apt-get install libboost-chrono1.48-dev libboost-regex1.48-dev libboost-system1.48-dev libboost-thread1.48-dev libboost-test1.48-dev libboost-random1.48-dev -y
6+
- sudo add-apt-repository -y ppa:boost-latest/ppa && sudo apt-get update -q && sudo apt-get install -y libboost-chrono1.55-dev libboost-random1.55-dev libboost-regex1.55-dev libboost-system1.55-dev libboost-thread1.55-dev libboost-test1.55-dev
67
env:
78
global:
89
- BOOST_INCLUDES=/usr/include
9-
- BOOST_LIBS=/usr/lib
10+
- BOOST_LIBS=/usr/lib/x86_64-linux-gnu
1011
script: scons -j 2 && scons test
1112
branches:
1213
only:
1314
- master
14-
- permessage-deflate
15-
- experimental
16-
- 0.3.x-cmake
1715
- develop
1816
notifications:
1917
recipients:

CMakeLists.txt

+20-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ project (websocketpp)
99
cmake_minimum_required (VERSION 2.6)
1010

1111
set (WEBSOCKETPP_MAJOR_VERSION 0)
12-
set (WEBSOCKETPP_MINOR_VERSION 6)
12+
set (WEBSOCKETPP_MINOR_VERSION 7)
1313
set (WEBSOCKETPP_PATCH_VERSION 0)
1414
set (WEBSOCKETPP_VERSION ${WEBSOCKETPP_MAJOR_VERSION}.${WEBSOCKETPP_MINOR_VERSION}.${WEBSOCKETPP_PATCH_VERSION})
1515

16+
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
17+
1618
set(INSTALL_INCLUDE_DIR include CACHE PATH "Installation directory for header files")
1719
if (WIN32 AND NOT CYGWIN)
1820
set (DEF_INSTALL_CMAKE_DIR cmake)
@@ -67,6 +69,8 @@ option (BUILD_TESTS "Build websocketpp tests." FALSE)
6769

6870
if (BUILD_TESTS OR BUILD_EXAMPLES)
6971

72+
enable_testing ()
73+
7074
############ Compiler specific setup
7175

7276
set (WEBSOCKETPP_PLATFORM_LIBS "")
@@ -150,6 +154,10 @@ if (BUILD_TESTS OR BUILD_EXAMPLES)
150154
list (APPEND WEBSOCKETPP_BOOST_LIBS random)
151155
endif()
152156

157+
if (BUILD_TESTS)
158+
list (APPEND WEBSOCKETPP_BOOST_LIBS unit_test_framework)
159+
endif()
160+
153161
############ Dependencies
154162

155163
# Set BOOST_ROOT env variable or pass with cmake -DBOOST_ROOT=path.
@@ -180,6 +188,14 @@ if (BUILD_TESTS OR BUILD_EXAMPLES)
180188
set (Boost_USE_STATIC_LIBS FALSE)
181189
endif ()
182190

191+
if (BOOST_STATIC)
192+
set (Boost_USE_STATIC_LIBS TRUE)
193+
endif ()
194+
195+
if (NOT Boost_USE_STATIC_LIBS)
196+
add_definitions (/DBOOST_TEST_DYN_LINK)
197+
endif ()
198+
183199
set (Boost_FIND_REQUIRED TRUE)
184200
set (Boost_FIND_QUIETLY TRUE)
185201
set (Boost_DEBUG FALSE)
@@ -212,6 +228,7 @@ if (BUILD_TESTS OR BUILD_EXAMPLES)
212228
endif ()
213229

214230
find_package(OpenSSL)
231+
find_package(ZLIB)
215232
endif()
216233

217234
############ Add projects
@@ -221,12 +238,12 @@ add_subdirectory (websocketpp)
221238

222239
# Add examples
223240
if (BUILD_EXAMPLES)
224-
add_subdirectory (examples)
241+
include_subdirs ("examples")
225242
endif ()
226243

227244
# Add tests
228245
if (BUILD_TESTS)
229-
add_subdirectory (test)
246+
include_subdirs ("test")
230247
endif ()
231248

232249
print_used_build_config()

0 commit comments

Comments
 (0)