From dab784487456a448dedf1c04a43cf6975b7ff3d8 Mon Sep 17 00:00:00 2001 From: "melo.yao" Date: Wed, 8 Apr 2015 00:19:30 +0800 Subject: [PATCH] update cmake lists --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 39c2d5b..52c0857 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() \ No newline at end of file +endif() \ No newline at end of file