diff --git a/CMakeLists.txt b/CMakeLists.txt index effe5c8..6804f06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.7) project(rest_rpc) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -std=c++11") @@ -8,4 +8,5 @@ include_directories( "./msgpack/include" ) -add_executable(rest_rpc main.cpp) \ No newline at end of file +add_executable(rest_rpc main.cpp) +target_link_libraries(rest_rpc ${Boost_LIBRARIES}) \ No newline at end of file diff --git a/test_client/CMakeLists.txt b/test_client/CMakeLists.txt index 07c4154..7d29eb9 100644 --- a/test_client/CMakeLists.txt +++ b/test_client/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.7) project(test_client) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -std=c++11") @@ -8,4 +8,5 @@ include_directories( "../msgpack/include" ) -add_executable(test_client main.cpp) \ No newline at end of file +add_executable(test_client main.cpp) +target_link_libraries(test_client ${Boost_LIBRARIES}) \ No newline at end of file