Skip to content

Commit cf7a5c7

Browse files
committed
add cmake file
1 parent 3696889 commit cf7a5c7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
cmake_minimum_required (VERSION 2.6)
2+
PROJECT(sioclient)
3+
4+
set(Boost_USE_STATIC_LIBS ON)
5+
set(Boost_USE_MULTITHREADED ON)
6+
set(Boost_USE_STATIC_RUNTIME OFF)
7+
find_package(Boost 1.57.0 COMPONENTS system date_time random asio)
8+
9+
if(Boost_FOUND)
10+
include_directories(${Boost_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/src ${PROJECT_SOURCE_DIR}/lib/websocketpp ${PROJECT_SOURCE_DIR}/lib/rapidjson/include)
11+
aux_source_directory(${PROJECT_SOURCE_DIR}/src ALL_SRC)
12+
add_library(sioclient STATIC ${ALL_SRC})
13+
target_link_libraries(sioclient ${Boost_LIBRARIES})
14+
endif()

0 commit comments

Comments
 (0)