mirror of
https://github.com/socketio/socket.io-client-cpp.git
synced 2026-06-10 20:36:14 +00:00
update cmake lists
This commit is contained in:
parent
cf7a5c795b
commit
dab7844874
@ -1,14 +1,18 @@
|
||||
cmake_minimum_required (VERSION 2.6)
|
||||
PROJECT(sioclient)
|
||||
|
||||
#set(BOOST_ROOT "D:/BoostRoot" )
|
||||
set(BOOST_INCLUDEDIR "D:/boost_1_55_0" )
|
||||
set(BOOST_LIBRARYDIR "D:/boost_1_55_0/boost_build/release/lib" )
|
||||
set(Boost_DEBUG 1)
|
||||
set(Boost_USE_STATIC_LIBS ON)
|
||||
set(Boost_USE_MULTITHREADED ON)
|
||||
set(Boost_USE_STATIC_RUNTIME OFF)
|
||||
find_package(Boost 1.57.0 COMPONENTS system date_time random asio)
|
||||
find_package(Boost 1.55.0 COMPONENTS system date_time random)
|
||||
|
||||
if(Boost_FOUND)
|
||||
include_directories(${Boost_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/src ${PROJECT_SOURCE_DIR}/lib/websocketpp ${PROJECT_SOURCE_DIR}/lib/rapidjson/include)
|
||||
aux_source_directory(${PROJECT_SOURCE_DIR}/src ALL_SRC)
|
||||
add_library(sioclient STATIC ${ALL_SRC})
|
||||
target_link_libraries(sioclient ${Boost_LIBRARIES})
|
||||
endif()
|
||||
endif()
|
||||
Loading…
x
Reference in New Issue
Block a user