mirror of
https://github.com/qicosmos/rest_rpc.git
synced 2026-08-29 08:34:47 +08:00
26 lines
596 B
CMake
26 lines
596 B
CMake
cmake_minimum_required(VERSION 3.1)
|
|
project(basic_client)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -std=c++11")
|
|
|
|
SET(ENABLE_SSL OFF)
|
|
|
|
if (ENABLE_SSL)
|
|
add_definitions(-DCINATRA_ENABLE_SSL)
|
|
message(STATUS "Use SSL")
|
|
endif()
|
|
|
|
find_package(Boost COMPONENTS system REQUIRED)
|
|
include_directories(
|
|
"/usr/local/include"
|
|
"../../include"
|
|
"../../third/msgpack/include"
|
|
)
|
|
|
|
add_executable(basic_client main.cpp)
|
|
|
|
if (ENABLE_SSL)
|
|
target_link_libraries(basic_client ${Boost_LIBRARIES} -lssl -lcrypto -lpthread)
|
|
else()
|
|
target_link_libraries(basic_client ${Boost_LIBRARIES})
|
|
endif() |